单项选择题
A.ItemDataBound B.Init C.Prerender D.<something I don‟t remember>
YouaredevelopinganASP.NETWebpage.Youaddadata-boundGridV...
单项选择题You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. What should you set the ClientIDMode property of the DropDownList to? ()
A.AutoID B.Static C.Inherit D.Predictable
YouaredevelopinganASP.NETWebpagethatwilldisplaythemedia...
单项选择题You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?()
A. IComparer<T> B. IEnumerable<T> C. IEnumerator<T> D. IEqualityComparer<T>
YouaredevelopinganASP.NETMVC2application.Aviewcontainsa...
单项选择题You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?()
A.<%: Model.FirstName %> B.<%= Model.FirstName %> C.<% Response.Write(Model.FirstName) %> D.<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>