单项选择题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.


您可能感兴趣的试卷

你可能感兴趣的试题

3.单项选择题

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. The ASP.NET application is used to track employee performance. It uses Microsoft Windows authentication. Employees are members of a group named Employees.  Managers are members of a group named Managers.  The root folder of the application is named Details. The Details folder displays information about employees„ performance.  The Details folder has a subfolder named MoreDetails. You need to ensure that employees and managers can access pages stored in the Details folder. However, only managers can access pages stored in the MoreDetails folder.   
You make the following entries in the Web.config file in the Details folder.
You make the following entries in the Web.config file in the MoreDetails folder.
When managers try to access pages stored in the MoreDetails folder, they receive the following error message:"An error occurred during the processing of a configuration file required to service this request." You must ensure that managers are able to access pages stored in the MoreDetails folder. What will you do to accomplish this?()

A.Add the following directive between line 1 and line 2 in the Web.config file in the MoreDetails folder:<identity impersonate="false" /> 
B.Modify line 4 in the Web.config file in the MoreDetails folder as follows:<allow users="*" />
C.Add the following directive between line 1 and line 2 in the Web.config file in the MoreDetails folder:<identity impersonate="true" /> 
D.Replace line 1 in the Web.config file in the MoreDetails folder with <authentication mode="Windows" />
E.Add the following directive between line 1 and line 2 in the Web.config file in the Details folder: <identity impersonate="true" /> 

5.单项选择题Which utility allows you to pre-compile and publish your Web site to a new location?()

A.Publish Web Site
B.Web-based installation
C.Web site project mode
D.Web services directory

6.单项选择题Which of the following is the correct collection of build events?()

A.Pre-Build, Post-Link, and Pre-Link
B.Pre-Build, Post-Build, and Post-Link
C.Pre-Build, Pre-Link, and Post-Build
D.Post-Link, Pre-Link, and Post-Build

9.单项选择题Which control allows you to bind to data items that are returned from a data source and display them?()

A.ListView Web Server Control
B.DetailsView Web Server Control
C.DataList Web Server Control
D.Data Web Server Control

最新试题

You have a login.ascx control and to display it in a view which method u would use()

题型:单项选择题

Which control allows you to bind to data items that are returned from a data source and display them?()

题型:单项选择题

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0. Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?()

题型:单项选择题

You have to store user data of 200 KB in an object. Which state management technique to use:()

题型:单项选择题

You are debugging an ASP.NET Web application by using the Visual Studio debugger. The application is incorrectly handling a SQL Exception on the login page. You need to break execution where the exception is thrown . What should 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?()

题型:单项选择题

You are developing an ASP.NET Web application.The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for application resources, but you must allow only the user named Moderator to perform a POST operation.Which configuration should you add to the web.config file?()

题型:单项选择题

You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()

题型:单项选择题

ou are developing an ASP.NET MVC 2 application. You create a view that will be returned by action methods in multiple controllers. You need to place the view in the appropriate folder. To which subfolder within the Views folder should you add the view?()

题型:单项选择题

You need to ensure that when the button is clicked, both update panels update the tim without generating a postback.  What should you do?()

题型:单项选择题