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?
A. Run the aspnet_regiis.exe command.You are implementing an ASP.NET Web site. The root directory of the site contains a page named Error.aspx.
You need to display the Error.aspx page if an unhandled error occurs on any page within the site. You also must ensure that the original URL in the browser is not changed. What should you do?
A. Add the following configuration to the web.config file.You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server.
Which deployment method should you choose?
A. the XCOPY command-line toolYou create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference only.)
01 public static void RegisterRoutes(RouteCollection routes) 02 {
03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
05 routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );
06 }
You implement a controller named HomeController that includes methods with the following signatures.
public ActionResult About()
public ActionResult Index()
public ActionResult Details(int id)
You need to ensure that the About action is invoked when the root URL of the site is accessed.
What should you do?
A. At line 04 in the Global.asax.cs file, add the following line of code.routes.MapRoute("Default4Empty", "/", new {controller = "Home", action ="About"});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 preparing to deploy an ASP.NET application to a production server by publishing the application in Release configuration. You need to ensure that the connection string value that is stored in the web.config file is updated to the
production server's connection string value during publishing.
What should you do?
A. Add the following code to the web.config file.You are developing an ASP.NET web application that you will deploy to an Internet Information Services (IIS) 7.0 server.
The application will run in Integrated pipeline mode.
The application contains a photo gallery of images that are stored in a Microsoft SQL Server database. You need to ensure that the application can retrieve images from the database without blocking IIS worker process threads.
What should you do?
A. create a synchronous HttpHandler that is registered in the HttpHandler section in the web config fileYou are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0.
The application has an ASP.NET page.
The page contains a method named GetCustomerOrderData that returns a DataSet.
GetCustomerOrderData contains two DataTable objects named CustomerDetails and OrderDetails, respectively.
You are required to display the data in OrderDetails in a DetailsView named ViewDetail. Choose the appropriate steps in the correct order to accomplish this.
Select and Place:

You create a Web page that contains drop-down menus that are defined by using div tags in the following code.

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?
A. $(".dropdown-menu").hover(function () {$(".menu-items"). slideDown (100);},function () {$ (".menu- items"). slideUp (100);});Nowadays, 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.