多项选择题

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

A.
B.
C.
D.


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题

You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality.You need to ensre that the JavaScript file is included in the assembly. 
Which two actions should you perform?()

A.Add the following assembly attribute to the AssemblyInfo file. 
B.Add the following assembly attribute to the AssemblyInfo file.
C.In the Properties window for the Refresh.js file, set the Build Action to Embedded Resource. 
D.In the Properties window for the Refresh.js file, set the Build Action to Content.

2.多项选择题

You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.  
Which two actions should you perform?()

A.Add the WebGet attribute to the service contract.
B.Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.
C.Add the WebInvoke attribute to the service contract.
D.Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.

4.单项选择题

You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.
What should you do?()

A.Pass the object data in a hidden field.
B.Store the object instance in a session variable.
C.Use a cookie that contains the object data.
D.Encode the object data and pass it in a query string parameter.

5.单项选择题You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()

A.<assembles> someoptions </assembles> 
B.<pages controlRenderingCompatibilityVersion="3.5"/>
C.<compilation targetframework = "3.5" />
D.<xhtmlConformance mode="Legacy" />

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

A.<%assembly TargetName="contosobuisness" %>
B.<%assembly ID="contosobuisness" %> 
C.<%@ Assembly Name="contosobuisness" %>
D.<%assembly virtualpath="contosobuisness" %>

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

A.this.RequireControlState(this.LoadControl(typeof(TextBox),null));
B.this.ContentSection.control.add(this.FindControl(ContentSection.ID + "asp:TextBox"));
C.this.ContentSection.control.add(this.LoadControl(typeof(TextBox),null));
D.this.LoadComplete("asp:TextBox").IntiantiateIn(Content Section)

最新试题

Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()

题型:单项选择题

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

题型:单项选择题

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

题型:单项选择题

Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()

题型:单项选择题

You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality.You need to ensre that the JavaScript file is included in the assembly. Which two actions should you perform?()

题型:多项选择题

You have a master page custom.master ... u create a nested.master page using it ... and then u have content page that uses the nested.master as its master page ...  to get a string prop from custom.master into a label in content page the code u wud use()

题型:单项选择题

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

题型:单项选择题

The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. What should you do? ()

题型:单项选择题

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

题型:单项选择题