web analytics

Tag: 70-515 sample questions

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (131-140)

QUESTION 131
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 site using .NET Framework 4.0. Only registered users of the company will be able to use the application.
The application holds a page named UserAccount.aspx that enables new users to register them to the registered users‘ list of the company.
The UserAccount page hold numerous TextBox controls that accept users personal details, such as user name, password, home address, zip code, phone number, etc. One of the TextBox controls on the page is named ZipCode in which a user enters a zip code.
You must ensure that when a user submits the UserAccount page, ZipCode must contain five numeric digits. What will you do to accomplish this?
(Each correct answer represents a part of the solution. Choose two.)

A.    Use RangeValidator.
B.    Use RegularExpressionValidator
C.    Use RequiredValidator
D.    Use CompareValidator
E.    Use RequiredFieldValidator

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (111-120)

QUESTION 111
You are developing an ASP.NET Web page that contains input controls, validation controls, and a button named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
1111
You need to ensure that all data that is submitted passes validation before the data is saved in a database.
What should you do?

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (101-110)

QUESTION 101
You are developing an ASP.NET web page. The page includes the following EntityDataSource control:
<asp:EntityDataSource ID=”EntityDataSource1″ runat=”server” ConnectionString=”name=AdventureWorksEntities” DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False” EntitySetName=”Products” />
The page must filter the data that is displayed in a grid on a query string parameter named ProductPrefix. The grid must display products whose ProductName starts with the query string value. You need to ensure that the page generates the appropriate database query. What should you do?

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (81-90)

QUESTION 81
You are developing an ASP.NET web page that includes a textbox control that has ID txtDate. You need to ensure that the user enters a valid date in the text box. Which markup should you use?

A.    <asp:CompareValidator ID=”valDate” runat=”server”
  Type=”Date” ControlToCompare=”txtDate”
Operator=”Equal”/>
B.    <asp:CompareValidator ID=”valDate” runat=”server”
Type=”Date” ControlToCompare=”txtDate”
Operator=”DataTypeCheck”/>
C.    <asp:CompareValidator ID=”valDate” runat=”server”
Type=”Date” ControlToValidate=”txtDate”
Operator=”DataTypeCheck”/>
D.    <asp:CompareValidator ID=”valDate” runat=”server”
  Type=”Date” ControlToValidate=”txtDate”
  Operator=”Equal”/>

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (51-60)

QUESTION 51
You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is regenerated when fetched after the 10 seconds elapse. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Modify the hosting page’s caching directive as follows.
<%@ OutputCache Duration=”10″ VaryByParam=”None” %>
B.    Add the following meta tag to the Head section of the hosting page.
<meta http-equiv=”refresh” content=”10″>
C.    Add the following caching directive to the hosted control.
<%@ OutputCache Duration=”10″ VaryByParam=”None” %>
D.    Add the following caching directive to the hosted control.
<%@ OutputCache Duration=”10″ VaryByControl=”None” %>

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (31-40)

QUESTION 31
You are implementing an ASP.NET Web site. The site contains the following class.
public class Address
{
    public int AddressType;
    public string Line1;
    public string Line2;
    public string City;
    public string ZipPostalCode;
}
The Web site interacts with an external data service that requires Address instances to be given in the following XML format.
<Address AddressType=”2″>
    <Line1>250 Race Court</Line1>
    <City>Chicago</City>
    <ZipCode>60603</ZipCode>
</Address>
You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML format requirements of the external data service. Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (21-30)

QUESTION 21
You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple locations.
Each location will specify its SMTP configuration settings in a separate file named smtp.config in the root folder of the Web site. You need to ensure that the configuration settings that are specified in the smtp.config file will be applied to the Web site. Which configuration should you use in web.config?
211

Continue reading

Leave a Comment