PrepAway - Latest Free Exam Questions & Answers

Category: 70-515 (v.1)

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4 (update August 24th, 2013)

Which code segment should you use?

You are implementing a read-only page that includesthe following controls.
<asp:Button ID=”btnRefresh” runat=”server” Text=”Button” />
<asp:GridView ID=”gvCustomers” runat=”server” EnableViewState=”False”
OnDataBinding=”gvCustomers_DataBinding”></asp:GridView>
You disable view state to improve performance.
You need to ensure that the page is updated to display the latest data when the user clicks the refresh button.
Which code segment should you use?

You need to ensure that the form cannot be used to submit invalid credit card numbers to the server

You are developing a Web page.
The user types a credit card number into an input control named cc and clicks a button named submit.
The submit button sends the credit card number to the server.
A JavaScript library includes a CheckCreditCard function that returns a value of true if the credit card appears
to be valid, based on its checksum.
You need to ensure that the form cannot be used to submit invalid credit card numbers to the server.
What should you do?

You need to create the form so that when the user clicks the label, the corresponding text box is selected for

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?


Page 7 of 19« First...56789...Last »