Online Access Free 070-515 Exam Questions
| Exam Code: | 070-515 |
| Exam Name: | TS: Web Applications Development with Microsoft .NET Framework 4 |
| Certification Provider: | Microsoft |
| Free Question Number: | 186 |
| Posted: | Oct 10, 2026 |
You are developing an ASP.NET MVC 2 application. You create a login user control named login.ascx. You need to display Login.ascx in a view.
What should you do?
You are creating an ASP.NET Web application that uses the SqlMembershipProvider.
You plan to test locally and deploy to multiple production servers.
You need to ensure that each deployed application accesses the same production database in Microsoft
SQL Server.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You 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 Index()
public ActionResult Details(int id)
public ActionResult DetailsByUsername(string username)
You need to add a route to meet the following requirements.
The details for a user must to be displayed when a user name is entered as the path by invoking the
DetailsByUsername action.
User names can contain alphanumeric characters and underscores, and can be between 3 and 20 characters long.
What should you do?
You are developing a Asp.net MVC 2 application
The following Customer class is rendered by the Html.DisplayForModel helper method.
public class Customer
{
public string FirstName { get; set;}
public string LastName { get; set;}
public string EmailAddress { get; set;}
}
You create a partial view named Email.ascx in the Views/Shared/DisplayTemplates folder. Email.ascx
performs custom formatting of e-mail addresses.
You need to ensure that the custom formatting is applied to only the EmailAddress property.
What should you do?