Which two code segments should you add?
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-mail address” 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? (Choose 2)
You need to ensre that the JavaScript file is included in the assembly
You create an ASP.NET server control in the SampleControl namespace.
The control uses a JavaScript file names Refresh.jsto implement AJAX functionality.
You need to ensre that the JavaScript file is included in the assembly.
Which two actions should you perform (Choose 2)
You need to ensure that GetProduct will accept a POST request and will indicate that the returned datais XML
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 datais
XML.
Which two actions should you perform (Choose 2)
Using LINQ to SQL class
ASP.net MVC dotn display a column
Using LINQ to SQL class
[MetadataType(typeof(ProductMetadata))]
public pertial class Product
{
…
}
public class ProductMetadata
{
…
}
You need to minimize the amount of data is sentto the user
You are developing an ASP.NET Web application.
The application must pass an object that contains user-specific data between multiple pages.
The object is more than 100 KB in size when serialized.You need to minimize the amount of data is sentto the
user.
What should you do?
the application hat to render same as in .net 3.5
Migration .net 3.5 to 4.0
You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.
all options had the <%assembly tag but the att differed
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
Which code would you use to get a string property from custom.master?
You have a master page custom.master.
You create a nested.master page using it.
You then have a content page that uses the nested.master as its master page.
Which code would you use to get a string property from custom.master?
which page directive you use?
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?
You need to acces the EmployeeName value and display the value within the lblEmployeeName label
You are developing an ASP.Net web application.
The application includes a master page named CustomerMaster.master that contains a public string property
name EmployeeName application also includes a second master page named NestedMaster.master that is
defined by the following directive.
<%@ Master Language=”C#”
MasterPageFile=”~/CustomMaster.Master”
CodeBehind=”NestedMaster.Master.cs”
Inherits=”MyApp.NestedMaster”%>
You add a content page that uses the NestedMaster.master page file.The content page contains a label control
named lblEmployeeName.
You need to acces the EmployeeName value and display the value within the lblEmployeeName label.
What should you do?