单项选择题
You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?()
A.Set the DataPager control’s PageSize property to the number of rows to view at one time.
B.Set the DataPager control’s PagedControlID property to the ID of the ListView control.
C.In the code-behind file, set the DataPager control’s Parent property to the ListView control.
D.In the code-behind file, set the ListView control’s Parent property to the DataPager control.
相关考题
-
单项选择题
YouareimplementinganASP.NETapplication.TheapplicationincludesaPersonclasswithpropertyAge.YouaddapageinwhichyougetalistofPersonobjectsanddisplaytheobjectsinaGridViewcontrol.YouneedtoaddcodesothattheGridViewrowishighlightedinrediftheageofthepersonislessthan18.WhichGridVieweventshouldyouhandle?()
A.RowDataBound
B.RowCommand
C.RowUpdated
D.RowEditing -
单项选择题
YouaredeployinganASP.NETWebapplicationtoaremoteserver.YouneedtochooseadeploymentmethodthatwillensurethatallIISsettings,inadditiontotheWebcontent,willdeploytotheremoteserver.Whichdeploymentmethodshouldyouchoose?()
A.the XCOPY command-line tool
B.the Copy Web Site tool
C.the Web Deployment tool
D.the Publish Web Site utility -
多项选择题
YouaredevelopinganASP.NETapplicationbyusingVisualStudio2010.Youneedtointeractivelydebugtheentireapplication.Whichtwoactionsshouldyouperform?()
A.Set the Debug attribute of the compilation node of the web.config file to true.
B.Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
C.Select the ASP.NET debugger option in the project properties.
D.Define the DEBUG constant in the project settings.
