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 toSystem.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.
查看答案
You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()
A. PlaceHolder
B. ContentPlaceHolder
Content
D. Substituition
在DW属性面板中,无法直接修改水平线的()属性。
A. 宽、高
B. 颜色
C. 阴影
D. 对齐方式
You are developing an ASP.NET Web page. You add the following markup to the page. You add the following code segment to the code-behind. You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed. Which two actions should you perform?()
A. Replace line 3 with the following code segment. if (FileUpload1.HasFile)
B. Replace line 3 with the following code segment. if (FileUpload1.FileContent.Length > 0)
C. Insert the following code segment at line 6.FileUpload1.SaveAs(saveName);
D. Insert the following code segment at line 6. FileUpload1.FileContent.CopyTo(new FileStream(saveName, FileMode.Open);
Which of the following characteristics are common to both RIPv2 and RIPng?(Choose all thatapply.)()
A. Link-local address used for next-hop addresses
B. Interface can be added to RIP routing process in either interface configuration mode or in routerconfiguration mode
C. Uses a multicast to send routing updates
D. Use hop count as a metric
E. Distance-vector routing protocol
F. Maximum hop count is 15 with 16 being "unreachable"