多项选择题
ou create a page in an ASP.NET Web application. The page retrieves and displays data from a Microsoft SQL Server database. You need to create a data source that can connect to the database. What are two possible ways to achieve this goal?()
A.Use an ObjectDataSource control and set its TypeName property to System.Data.SqlClient.SqlConnection.
B.Use a SqlDataSource control and configure its ConnectionString in the web.config file.
C.Use an XmlDataSource control together with an Xml control that represents the database.
D.Use a LinqDataSource control with entity classes that represent the elements in the database.
相关考题
-
单项选择题
YouareimplementinganASP.NETpagethatwillretrievelargesetsofdatafromadatasource.YouaddaListViewcontrolandaDataPagercontroltothepage.Youneedtoensurethatthedatacanbeviewedonepageatatime.Whatshouldyoudo?()
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
