Which code segment should you use?

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in case a users device does not display the full text of a news item. Which code segment should you use?

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in case a users device does not display the full text of a news item. Which code segment should you use?

A.
PagerStyle ps=new PagerStyle();
ps.NextPageText="more>";
ps.PreviousPageText ="<back";
FormNews.Paginate=true;

B.
FormNews.PagerStyle.NextPageText = "more>";
FormNews.PagerStyle.PreviousPageText="<back";
TextViewNews.PaginateRecursive(new ControlPager(FormNews, 1000));

C.
FormNews.PagerStyle.NextPageText = "more>";
FormNews.PagerStyle.PreviousPageText="<back";
FormNews.PaginateRecursive(new ControlPager(FromNews, 1000));

D.
FormNews.PagerStyle.NextPageText = "more>";
FormNews.PagerStyle.PreviousPageText="<back";
FormNews.Paginate=true;



Leave a Reply 0

Your email address will not be published. Required fields are marked *