单项选择题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 are planning to deploy the ASP.NET Web application to a production server by publishing the Web application in Release configuration. You must ensure that the connection string value in the Web.config file is updated to the connection string value of the production server during publishing.  What will you do?()

A.Add the following code to the Web.config file.
B.Add the following code to the Web.release.config file.
C.Add the following code to the Web.config file:
D.Add the following code to the Web.release.config file.


您可能感兴趣的试卷

你可能感兴趣的试题

4.单项选择题Which of the following is the correct syntax to specify the path to a file that generates the strong  type?()

A.<%@ PreviousPageType VirtualPath ="~/MyPage.aspx"% >
B.<%@ PreviousPageType VirtualPath ="/MyPage.aspx/ ~"% >
C.<%@ PreviousPageType VirtualPath ="~/MyPage.master"% >
D.<%@ PreviousPageType VirtualPath ="~/MyPage"% >

6.单项选择题You are developing an ASP.NET Web application. Application data is stored in a Microsoft SQL Server 2008 database. You configure a connection string named cnnContoso. The application must cache the data that is returned from the database by using this connection string. You need to ensure that the application checks the database every 10 seconds. What should you do? ()

A.Add the following configuration to the  section of the web.config file.
B.Add the following configuration to the  section of the web.config file.
C.Add the following @ Page directive to pages that query the database.
D.Add the following @ Page directive to pages that query the database.

7.多项选择题

You are developing an ASP.NET Web service. The following code segment implements the service.

You need to ensure that both GetProduct methods can be called from a Web client. Which two actions should you perform?()

A.Remove line 01.
B.Add the static modifier on lines 05 and 11.
C.Add the following attribute before line 10. [SoapDocumentMethod(Action="GetProductById")]
D.Modify the attribute on line 10 as follows. [WebMethod(MessageName="GetProductById")]

10.单项选择题

You are developing an ASP.NET Web page. The page contains the following markup. 
The pages code-behind file includes the following code segment. 
You need to get a reference to the Image named img. Which code segment should you add at line 06?()

A.Image img = (Image)Page.FindControl("img");
B.Image img = (Image)e.Row.FindControl("img");
C.Image img = (Image)gvModels.FindControl("img");
D.Image img = (Image)Page.Form.FindControl("img");

最新试题

You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required" when the user does not enter an address and "Invalid e-mailaddress" when the user enters an address that is not formatted properly. You need to ensure that the appropriate error message is displayed when the text box does not contain a valid e-mail address.  Which two code segments should you add?()

题型:多项选择题

Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?()

题型:单项选择题

You are developing a Asp.net web application tht includes a panel control that has ID contentsection.You need to add a textBox control to the panel control.()

题型:单项选择题

In a page there is a div (I guess it was a div) and you need to execute a javascript function when if first moves the mouse over the element.()

题型:单项选择题

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

题型:单项选择题

Which utility allows you to pre-compile and publish your Web site to a new location?()

题型:单项选择题

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.()

题型:单项选择题

In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()

题型:单项选择题

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

题型:单项选择题

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?()

题型:单项选择题