web analytics

Tag: 70-515 exam

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (171-180)

QUESTION 171
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 (Choose 2)

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.

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (161-170)

QUESTION 161
You are dynamically adding controls to an ASP.NET page in the Page_Load event handler. The page will have text boxes that correspond to the columns in a database table. Each text box will be preceded by a label that displays the name of the corresponding column. You need to create the form so that when the user clicks the label, the corresponding text box is selected for input. What should you do?

A.    For each column, output the following HTML, where COL is replaced by the name of the column.
<label>COL</label>
<input name=”COL” type=”text” id=”COL” />
B.    For each column, output the following HTML, where COL is replaced by the name of the column.
<label AssociatedControlID=”COL”>COL</label>
<input name=”COL” type=”text” id=”COL” />
C.    For each column, create an asp:Label control and a corresponding asp:TextBox that have the same ID.
D.    For each column, create an asp:Label control and set the AssociatedControlID to the ID of the corresponding asp:Textbox control.

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (91-100)

QUESTION 91
You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. What should you set the ClientIDMode property of the DropDownList to?

A.    AutoID
B.    Static
C.    Inherit
D.    Predictable

Continue reading

Leave a Comment

New Microsoft 70-515 Exam Questions and Best 70-515 Dumps Download (71-80)

QUESTION 71
You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh. What should you do?

A.    Add two forms to the page.
Add a script manager and an update panel to each form.
Add a content template to each update panel, and move each div element into a content template.
B.    Add two forms to the page.
Add a script manager and an update panel to each form.
Add a content template to each update panel, and move each div element into a content template.
C.    Add a form and two update panels to the page.
Add a script manager to the form.
Add a content template to each update panel, and move a div element into each content template.
D.    Add a form and two update panels to the page.
Add two script managers to the form, one for each update panel.
Add a content template to each update panel, and move each div element into a content template.

Continue reading

Leave a Comment

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

QUESTION 61
You create a Web page that contains drop-down menus that are defined by using div tags in the following code.
<div class=”dropdown-menu”>
    <div class=”menu-title”>Menu One</div>
    <div class=”menu-items” style=”display:none;”>
        <div><a href=”#”>Item One</a></div>
        <div><a href=”#”>Item Two</a></div>
    </div>
</div>
<div class=”dropdown-menu”>
    <div class=”menu-title”>Menu Two</div>
    <div class=”menu-items” style=”display:none;”>
        <div><a href=”#”>Item Three</a></div>
        <div><a href=”#”>Item Four</a></div>

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 (11-20)

QUESTION 11
You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx.
<uc:TestUserControl ID=”testControl” runat=”server”/>
You add the following code to the code-behind file of TestPage.aspx.
private void TestMethod()
{

}
You define the following delegate.
public delegate void MyEventHandler();
You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the page’s TestMethod method to the event.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Add the following line of code to TestUserControl.ascx.cs.
public event MyEventHandler MyEvent;
B.    Add the following line of code to TestUserControl.ascx.cs.
public MyEventHandler MyEvent;
C.    Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
<uc:TestUserControl ID=”testControl” runat=”server” OnMyEvent=”TestMethod”/>
D.    Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
<uc:TestUserControl ID=”testControl” runat=”server” MyEvent=”TestMethod”/>

Continue reading

Leave a Comment