数据绑定控件通过属性 DataSourceID 与数据源控件实现绑定。
数据绑定控件通过属性 DataSourceID 与数据源控件实现绑定。
在实现数据绑定时,列表控件主要需要设置 DataSource和()属性,然后调用DataBind方法。 A: DataSourceID B: DataTextField C: Data D: DataField
在实现数据绑定时,列表控件主要需要设置 DataSource和()属性,然后调用DataBind方法。 A: DataSourceID B: DataTextField C: Data D: DataField
对DropDownList控件和ListBox控件,描述不正确的是() A: 都可以用<asp:Listltem>作为其内部选项的标记 B: ListBox 控件的SelectionMode 属性,有 Single/Multiple两个选择,分别表示可以单选或则多选。 C: 在动态获取选项的情况下,DataSourceID是DropDownList控件和 ListBox控件用来绑定的数据源名称 D: 以上都不对
对DropDownList控件和ListBox控件,描述不正确的是() A: 都可以用<asp:Listltem>作为其内部选项的标记 B: ListBox 控件的SelectionMode 属性,有 Single/Multiple两个选择,分别表示可以单选或则多选。 C: 在动态获取选项的情况下,DataSourceID是DropDownList控件和 ListBox控件用来绑定的数据源名称 D: 以上都不对
Certkiller.com has hired you as a Web Application Developer for their network. The previousadministrator created a Microsoft ASP.NET application using Microsoft .NET Framework v3.5. You check and discover that the application contains a DataSourceControl named CatDS1. ThisDataSourceControl is bound to a Microsoft SQL Server 2005 table. The primary key of the table isthe CatName column. The code below is written in the FormView control. (The line numbers isincluded for reference purposes) 01 02 Category: 03 04 05 DataSourceID="CatDS1" 06 DataTextField="CatName" 07 DataValueField="CatID" 08 Runat="server" /> 09 10 You have to make sure that any modifications made to the CatID field is written to the database.You should therefore identify the code segment that has to be added in line 04. What should you identify?() A: Your best option would be to add the SelectedValue='<%# Bind("CatName") %>' codesegment. B: Your best option would be to add the SelectedValue='<%# Bind("CatID") %>' code segment. C: Your best option would be to add the SelectedValue='<%# Eval("CatID") %>' code segment. D: Your best option would be to add the SelectedValue='<%# Eval("CatName") %>' codesegment.
Certkiller.com has hired you as a Web Application Developer for their network. The previousadministrator created a Microsoft ASP.NET application using Microsoft .NET Framework v3.5. You check and discover that the application contains a DataSourceControl named CatDS1. ThisDataSourceControl is bound to a Microsoft SQL Server 2005 table. The primary key of the table isthe CatName column. The code below is written in the FormView control. (The line numbers isincluded for reference purposes) 01 02 Category: 03 04 05 DataSourceID="CatDS1" 06 DataTextField="CatName" 07 DataValueField="CatID" 08 Runat="server" /> 09 10 You have to make sure that any modifications made to the CatID field is written to the database.You should therefore identify the code segment that has to be added in line 04. What should you identify?() A: Your best option would be to add the SelectedValue='<%# Bind("CatName") %>' codesegment. B: Your best option would be to add the SelectedValue='<%# Bind("CatID") %>' code segment. C: Your best option would be to add the SelectedValue='<%# Eval("CatID") %>' code segment. D: Your best option would be to add the SelectedValue='<%# Eval("CatName") %>' codesegment.