Latest 70-515 Real Exam Download 121-130

Ensurepass

QUESTION 121

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"% >

Answer: A

You create an ASP.NET MVC 2 Web application using .NET Framework 4.0.

You implement a single project area in the MVC 2 Web application. In the Areas folder, you add a subfolder named MyTest.

You add the following fi les to the appropriate sub-folders:

clip_image002clip_image002[1]MyController. cs MyHome.aspx

You register a route of the area, setting the route name to MyTest_default and the area name to test. You create a view named MyViews.aspx that is outside the test area.

You need to add a link to MyViews.aspx that points to MyHome.aspx. Which of the following code segments will you use?

A. <%= Html.ActionLink("MyTest", "MyHome", new {area = "test"}, null)%>

B. <%= Html.RouteLink("MyHome", "MyTest", new {area = "test"}, null)%>

C. <%= Html.RouteLink("MyTest", "MyHome", "MyTest", new {area = "test"}, null)%

>

D. <%= Html.ActionLink("MyTest", "MyHome", "MyTest", new {area = "test"}, null)%>

Answer: D


QUESTION 123

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 will be accessed by international audience.

The Web application holds global and local resources for display elements that must be translated into the language that is preferred by the user.

You are required to ensure that a Label control named CompanyLabel displays text in the user’s preferred language from the global resource file.

Which control markup will you use?

A. <asp:Label lD="CompanyLabel" runat="server" Text="<%$ Resources: WebResources, Text %>" />

B. <asp:Label lD="CompanyLabel" runat="server" Text="<% Resources:WebResources

%>" />

C. <asp:Label lD="CompanyLabel" runat="server" Text="<%$ Resources: WebResources, CompanyLabelText %>" />

D. <asp:Label lD="CompanyLabel" runat="server" Text="CompanyLabel" meta: resourcekey="CompanyLabel.Text" />

Answer: C


QUESTION 124

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 makes use of SqlMembershipProvider.

You need to test the application locally and then deploy it to numerous production servers.

You must ensure that each and every deployed application accesses the identical production database in a Microsoft SQL Server.

What will you do?

(Each correct answer represents a part of the solution. Choose two.)

A. Execute the Aspnet_regsql.exe tool to create the database on the correct Microsoft SQL Server.

B. Run the Aspnet_compiler.exe tool to create the database on the correct Microsoft SQL Server.

C. Alter the Web.Release.config file to transform the connection string to provide the names of the database and production server.

D. Alter the Web.Debug.config file to transform the connection string to provide the names of the database and production server.

E. Alter the connection string in the Web.config file to provide the names of the production server.

Answer: AE


QUESTION 125

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 application will provide information about products manufactured by the company. The company has a branch offi ce in Saudi Arabia.

The Sales department employees of the branch offi ce in Saudi Arabia will use the application. You are required to accomplish the following tasks:

clip_image002[2]clip_image002[3]The application displays contents in the correct format for the employees of the Saudi Arabia offi ce. Each page in the application is displayed in the right-to-left format.

What will you do to accomplish these tasks?

(Each correct answer represents a part of the solution. Choose two.)

A. In the Web.confi g fi le of the Web application, set the culture attribute of the <globalization> element to "ar-SA".

B. In the Web.confi g fi le of the Web application, set the uiCulture attribute to "ar-SA".

C. In the Web.confi g fi le of the Web application, set the culture attribute to "SA".

D. In the Web.confi g fi le of the Web application, set the culture attribute of the <globalization> element to "ar".

E. Set the HTML dir attribute for the <body> element of each page to "rtl".

Answer: AE


QUESTION 126

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, zipcode, 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 fi ve 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

Answer: BE

You are creating an ASP.NET Web application using .NET Framework 4.0.

The application holds a Web page named MyHome.aspx.

You are creating a button with a rolloverimage on MyHome.aspx.

However, when mouse hovered over the button image, the rolloverimage is retrieved from the server in a separate request.

You need to use an improved rollover button in which the button‘s rolloverimage is already downloaded and stored in the browser’s cache, as a result when you hover over the button, it is instantly displayed.

What will you do to accomplish this?

(Each correct answer represents a part of the solution. Choose two.)

A. Use JavaScript Object Notation.

B. Use the RegisterClientScriptBlock method.

C. Use the RegisterClientScriptlnclude method.

D. Build a JavaScript function.

E. Use the RegisterClientScriptResource method.

Answer: BD


QUESTION 128

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 confi guration.

You must ensure that the connection string value in the Web.confi g fi le 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.confi g fi le.

<connectionStrings>

<add name="DataBD" connectionString="Server=ProductionSewer;

Database=ProductionDB;Integrated Security=SSPI;" xdt:Transform="Replace"

xdt:Locator="Match(name)" />

</connectionStrings>

B. Add the following code to the Web.release.confi g fi le.

<connectionStrings>

<add name="DataBD" connectionString="Server=ProductionSewer;

Database=ProductionDB;Integrated Security=SSPI;" xdt:Transform="Replace"

xdt:Locator="Match(name)" />

</connectionStrings>

C. Add the following code to the Web.confi g fi le:

<connectionStrings>

<add name="DataBD" connectionString="Server=ProductionSewer;

Database=ProductionDB;Integrated Security=SSPI;" xdt:Transform="Replace"

xdt:Locator="XPath(name)" />

</connectionStrings>

D. Add the following code to the Web.release.confi g fi le.

<connectionStrings>

<add name="DataBD" connectionString="Server=ProductionSewer;

Database=ProductionDB;Integrated Security=SSPI;" xdt:Transform="Replace"

xdt:Locator="XPath(name)" />

</connectionStrings>

Answer: B


QUESTION 129

Which property of the Label control getssets the identifer for a server control that the Label control is associated with?

A. ClientID

B. ID

C. AssociatedControlID

D. ControlID

Answer: C


QUESTION 130

Which property of the ListView class is used to getset the name of the data field whose value exclusively identifes every data row of a ListView when the ClientIDMode property is set to Predictable?

A. LoadViewStateByID

B. UniqueID

C. ClientIDMode

D. ClientIDRowSuffix

Answer: D


Download Latest 70-515 Real Free Tests , help you to pass exam 100%.