A.DataSource
B.DataSourceID
C.DataKeyNames
D.DataMember
您可能感兴趣的试卷
你可能感兴趣的试题
A.ItemDataBound
B.Init
C.Prerender
D.<something I don‟t remember>
A. IComparer<T>
B. IEnumerable<T>
C. IEnumerator<T>
D. IEqualityComparer<T>
A.<%: Model.FirstName %>
B.<%= Model.FirstName %>
C.<% Response.Write(Model.FirstName) %>
D.<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>
A.Html.ActionLink("Home", "Index", "Home")
B.Html.ActionLink("Home", "Index", "Home", new {area = ""}, null)
C.Html.ActionLink("Home", "Index", "Home", new {area = "Blog"}, null)
D.Html.ActionLink("Home", "Index", "Home", new {area = "Home"}, null)
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);
A.PlaceHolder
B.ContentPlaceHolder
C.Content
D.Substituition
A.Use an ObjectDataSource control and set its TypeName property to System.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.
A.Set the DataPager control’s PageSize property to the number of rows to view at one time.
B.Set the DataPager control’s PagedControlID property to the ID of the ListView control.
C.In the code-behind file, set the DataPager control’s Parent property to the ListView control.
D.In the code-behind file, set the ListView control’s Parent property to the DataPager control.
A.RowDataBound
B.RowCommand
C.RowUpdated
D.RowEditing
最新试题
You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()
You are developing an ASP.NET MVC 2 Web Application. You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization.Which code segment should you use?()
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?()
Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()
You have a login.ascx control and to display it in a view which method u would use()
A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed.()
You are perfoming security testing on an existing asp.net web page.You notice that you are able to issue unauthorised postback requests to the page. You need to prevent unauthorised post back requests. which page directive you use?()
Which method of the Page class searches the page naming container for a server control with a particular identifer?()
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source. You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()
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?()