add  sample for AsView.