多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control:   01    02   Category:   03      09      10     You need to ensure that the changes made to the CategoryID field can be written to the database.  Which code fragment should you insert at line 04?()

  • A、SelectedValue='<%# Eval("CategoryID") %>' 
  • B、SelectedValue='<%# Bind("CategoryID") %>' 
  • C、SelectedValue='<%# Eval("CategoryName") %>' 
  • D、SelectedValue='<%# Bind("CategoryName") %>'
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题