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.)
A. function validate_value(obj, args) {return(args.Value >= 1 andand args.ValueYou are developing an ASP.NET Web application. Application data is stored in a Microsoft SQL Server 2008 database. You configure a connection string named cnnContoso. The application must cache the data that is returned from the database by using this connection string. You need to ensure that the application checks the database every 10 seconds. What should you do?
A. Add the following configuration to the section of the web.config file.You are developing an ASP.NET MVC 2 Web application. The application contains a controller named HomeController, which has an action named Index. The application also contains a separate area named Blog.
A view within the Blog area must contain an ActionLink that will link to the Index action of the HomeController.
You need to ensure that the ActionLink in the Blog area links to the Index action of the HomeController.
Which ActionLink should you use?
A. Html.ActionLink("Home", "Index", "Home")You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?
A. Set the DataPager control's PageSize property to the number of rows to view at one time.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.You are developing an ASP.NET MVC2 application.
You add an area named Admin to the application. Admin contains a controller class name to MainController.
You create a view named Index outside the Admin area. You need to add a link in the Index view that will call the Default action.
Wich markup should you use?
You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code.
public ActionResult Edit(int id)
{
return View(SelectUserToEdit(id));
}
public ActionResult Edit(Person person)
{
UpdateUser(person);
return RedirectToAction("Index");
}
The first Edit action displays the user whose details are to be edited, and the second Edit action is called when the Save button on the editing form is clicked to update the user details. An exception is thrown at run time stating that the request
for action Edit is ambiguous. You need to correct this error and ensure that the controller functions as expected. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Add the following attribute to the first Edit action. [AcceptVerbs(HttpVerbs.Head)]Which property of the ListView class is used to get\set 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. LoadViewStateByIDYou 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 MVC 2 Web application using .NET Framework
4.0. You add a controller named MVC2Controller to the MVC 2 application. You are required to modify the MVC 2 application to manage the URL path /company/info. What will you do? (Each correct answer represents a part of the solution. Choose two.)
A. Right-dick the Views folder, and select View from the Add sub-menu to create the view for the action.You have a master page custom.master.
You create a nested.master page using it.
You then have a content page that uses the nested.master as its master page. Which code would you use to get a string property from custom.master?
A. master.masterNowadays, 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.