网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Gridview: How to change the image of an image control place in each row in a gridview:()

  • A、ItemDataBound
  • B、Init 
  • C、Prerender 
  • D、<something I don‟t remember>

参考答案

更多 “Gridview: How to change the image of an image control place in each row in a gridview:()A、ItemDataBoundB、Init C、Prerender D、something I don‟t remember” 相关考题
考题 下面关于GridView控件的说法正确的是( )。A.GridView控件只能原样显示数据表中的记录,不能修改B.为了美化显示,GridView控件的头模板、体模板和尾模板都必须进行设置C.GridView控件不能分页显示数据D.GridView控件能实现数据的排序

考题 SqlConnection,SqlCommand,SqlDataAdapter可获取数据供GridView使用。() 此题为判断题(对,错)。

考题 在GridView换页事件对应的方法中,如果需要获得GridView的当前页的页号,使用的技术为()。 A.e.PageIndexB.e.IndexPageC.e,PageNowIndexD.e.CurrentPagee.NewPageIndex

考题 为了控制GridView的自动分页,应该设置两个属性,分别是()。 A.AutoPagingPageSizeB.PagingPageCountC.PagingPageSizeD.PageNumberPageIndex

考题 利用GridView和DetailsView显示主从表数据时,DetailsView中插入了一条记录需要刷新GridView,则应把GridView。DataBind()方法的调用置于()事件的代码中。A、GridView的ItemInsertingB、GridView的ItemInsertedC、DetailsView的ItemInsertingD、DetailsView的ItemInserted

考题 如果对定制后的GridView实现排序功能,除设置GridView的属性AllowSorting的值为True外,还应该设置()属性。A、SortExpressionB、SortC、SortFieldD、DataFieldText

考题 Web程序中的GridView控件和Windows程序的()控件类似。

考题 You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()A、% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %B、% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %C、% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %D、% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %

考题 GridView的属性()确定是否分页

考题 GridView中能调整列的顺序

考题 关于GridView使用,说法错误的是()A、GridView会生成以表格进行布局的列表B、GridView内置了分页,排序,以及增、删、改、查等功能。C、给GridView设置数据源时,可以指定该控件的DataSourceID为某数据源控件IDD、给GridView设置DataSource属性后,必须调用DataBind()方法。且DataSource和DataSourceID不可以同时指定。

考题 下面不属于控件的是()A、DataSetB、RepeaterC、SqlDataSourceD、GridView

考题 GridView控件有什么功能?

考题 GridView设置分页后,默认显示()记录。A、5B、10C、15D、20

考题 You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years.  What will you do to accomplish this?()A、Use the RowCommand event of the GridView control.B、Use the SelectedlndexChanged event of the GridView control.C、Use the RowDataBound event of the GridView control.D、Use the RowEditing event of the GridView control.E、Use the RowUpdated event of the GridView control.

考题 Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()A、RowEnteredB、RowEditedC、RowEnteringD、RowEditing

考题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a Web page that has a GridView control named GridView1. The GridView1 control displays the  data from a database named Region and a table named Location.  You write the following code segment to populate the GridView1 control. (Line numbers are included for reference only.)  01 Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As EventArgs)  02 Dim connstr As String  03 ...  04 SqlDependency.Start(connstr)  05 Using connection As New SqlConnection(connstr)  06 Dim sqlcmd As New SqlCommand()  07 Dim expires As DateTime = DateTime.Now.AddMinutes(30)  08 Dim dependency As SqlCacheDependency = _  09 New SqlCacheDependency("Region", "Location")  10 Response.Cache.SetExpires(expires)  11 Response.Cache.SetValidUntilExpires(True)  12 Response.AddCacheDependency(dependency)  13  14 sqlcmd.Connection = connection  15 GridView1.DataSource = sqlcmd.ExecuteReader()  16 GridView1.DataBind()  17 End Using 18 End Sub  You need to ensure that the proxy servers can cache the content of the GridView1 control. Which code segment should you insert at line 13? () | English | Chinese | Japan | Korean | - 90 - Test Information Co., Ltd. All rights reserved.A、Response.Cache.SetCacheability(HttpCacheability.Private) B、Response.Cache.SetCacheability(HttpCacheability.Public) C、Response.Cache.SetCacheability(HttpCacheability.Server) D、Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate) 

考题 判断题GridView中能调整列的顺序A 对B 错

考题 单选题给GridView控件增加光棒效果时,不适合编写的事件有()A RowDataBoundB DataBoundC RowCommandD RowCreated

考题 单选题You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18. Which GridView event should you handle?()A RowDataBoundB RowCommandC RowUpdatedD RowEditing

考题 单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page that has a GridView control named GridView1. The GridView1 control displays the data from a database named Region and a table named Location. You write the following code segment to populate the GridView1 control:   01 protected void Page_Load(object sender, EventArgs e)   02 {   03   string connstr;   04   05   SqlDependency.Start(connstr);   06   using (SqlConnection connection =   07     new SqlConnection(connstr))   08   {   09     SqlCommand sqlcmd = new SqlCommand();   10     DateTime expires = DateTime.Now.AddMinutes(30);   11     SqlCacheDependency dependency = new   12       SqlCacheDependency("Region", "Location");  13     Response.Cache.SetExpires(expires);   14     Response.Cache.SetValidUntilExpires(true);   15     Response.AddCacheDependency(dependency);   16 ►  17     sqlcmd.Connection = connection;   18     GridView1.DataSource = sqlcmd.ExecuteReader();   19     GridView1.DataBind();   20   }   21 }  You need to ensure that the proxy servers can cache the content of the GridView1 control.  Which code segment should you insert at line 16?()A Response.Cache.SetCacheability(HttpCacheability.Private); B Response.Cache.SetCacheability(HttpCacheability.Public); C Response.Cache.SetCacheability(HttpCacheability.Server); D Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate);

考题 填空题Web程序中的GridView控件和Windows程序的()控件类似。

考题 单选题利用GridView和DetailsView显示主从表数据时,DetailsView中插入了一条记录需要刷新GridView,则应把GridView。DataBind()方法的调用置于()事件的代码中。A GridView的ItemInsertingB GridView的ItemInsertedC DetailsView的ItemInsertingD DetailsView的ItemInserted

考题 单选题关于GridView使用,说法错误的是()A GridView会生成以表格进行布局的列表B GridView内置了分页,排序,以及增、删、改、查等功能。C 给GridView设置数据源时,可以指定该控件的DataSourceID为某数据源控件IDD 给GridView设置DataSource属性后,必须调用DataBind()方法。且DataSource和DataSourceID不可以同时指定。

考题 问答题在GridView中的RowEditing事件在什么时候响应?

考题 单选题You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do?()A Replace the GridView control with a ListView control.B Set the ClientIDMode attribute to Predictable in the web.config file.C Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.D Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.

考题 单选题GridView设置分页后,默认显示()记录。A 5B 10C 15D 20