Which two code segments should you use?
You are implementing an ASP.NET Web page.
You need to add a text box that allows only values between 1 and 10, inclusive, to be submitted. Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
What should you do?
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?
What should you do?
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?
Which approach should you recommend?
You are designing an ASP.NET 4 Web application that will integrate third-party components.
You need to minimize the security risks of using these components.
Which approach should you recommend?
What should you do?
You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one pa to another. What should you do?
Which approach should you recommend?
You are designing a user input form that is part of an ASP.NET Web Forms application.
You need to ensure that users cannot attack the Web server by submitting invalid data.
Which approach should you recommend?
Which approach should you recommend?
You are designing an ASP.NET Web Forms application that uses a database containing user names and hashed passwords for authentication. The Web application includes a login form in which users type their user names and passwords.
You need to design a strategy to ensure that the users login credentials cannot be stolen through a man-in-the-middle attack.
Which approach should you recommend?
What are two possible ways to achieve this goal?
You create an ASP.NET page that contains the following tag.
<h1 id=”hdr1″ runat=”server”>Page Name</h1>
You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Which code segment should you use?
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>
</div>
</div>
You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.
Which code segment should you use?
What should you do?
You deploy an ASP.NET application to an IIS server.
You need to log health-monitoring events with severity level of error to the Windows application event log.
What should you do?