You are developing an ASP.NET Web page that includes a text box control. The page includes a server- side method named ValidateValue. You need to configure the page so that the text box value is validated by using the ValidateValue
method.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Use the CompareValidator control.You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an
unrecognized country value will not be processed by the Details action of HomeController.
What should you do?
A. Add the ValidateAntiForgeryToken attribute to the Details action method.You are implementing an ASP.NET AJAX page.
You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.
You have the following requirements.
Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.
You need to configure the panels to meet the requirements.
What should you do?
A. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.You are implementing an ASP.NET page. You add and configure the following ObjectDataSource.
The page will be called with a query string field named pid. You need to configure the ObjectDataSource control to pass the value of the pid field to GetProductsByProductId method.
What should you do?
A. Replace the asp:Parameter with the following declaration.You are implementing an ASP.NET page that includes a text box. You need to validate values that are typed by users to ensure that only numeric values are submitted. Which control markup should you use?
You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the users selected language from the global resource file. Which control markup should you use?
You are implementing an ASP.NET web page that contains a ScriptManager control. You need to ensure that only the required Microsoft AJAX Framework Javascript files are loaded.
A. Set the AjaxFrameworkMode property of the ScriptManager to Enabled, and reference each javascript file by adding a ScriptReference for each required file.You create a Web page that contains the following code. (Line numbers are included for reference only.)
01
07
Welcome!
08
09
10
11
You need to ensure that when the user clicks an item in the list, the text color of the Welcome! message will change. Which declaration should you use?
A. BlackRedYou are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers.
You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.
Which configuration should you use?
You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code.
public class Person { public string FirstName { get; set;} public string LastName { get; set;} }
You need to add an attribute to the Person class to ensure that you can save an instance to session state. Which attribute should you use?
A. BindableNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-515 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.