70-515 Exam
TS: Web Applications Development with Microsoft .NET Framework 4
- Exam Number/Code : 70-515
- Exam Name : TS: Web Applications Development with Microsoft .NET Framework 4
- Questions and Answers : 187 Q&As
- Update Time: 2014-11-11
-
Price:
$ 119.00$ 49.00 -
70-515 Hard Copy (PDF)
-
70-515 Test Engine
Free 70-515 Demo Download
Test4pass offers free demo for TS 70-515 exam (TS: Web Applications Development with Microsoft .NET Framework 4). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Exam Description
It is well known that 70-515 exam test is the hot exam of Microsoft certification. Test4pass offer you all the Q&A of the 70-515 real test . It is the examination of the perfect combination and it will help you pass 70-515 exam at the first time!
Why choose Test4pass 70-515 braindumps
Quality and Value for the 70-515 Exam
100% Guarantee to Pass Your 70-515 Exam
Downloadable, Interactive 70-515 Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.
Test4pass 70-515 Exam Features
Quality and Value for the 70-515 Exam
Test4pass Practice Exams for Microsoft 70-515 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 70-515 Exam
If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the TS 70-515 exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
Microsoft 70-515 Downloadable, Printable Exams (in PDF format)
Our Exam 70-515 Preparation Material provides you everything you will need to take your 70-515 Exam. The 70-515 Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
70-515 Downloadable, Interactive Testing engines
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our Microsoft 70-515 Exam will provide you with free 70-515 dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 70-515 Exam:100% Guarantee to Pass Your TS exam and get your TS Certification.
Hot KeyWords On 70-515 test
We collect some hot keywords about this exam:
Test4pass , Pass 4 Sure , Test in Side ,Pass Guide ,Test King 70-515 exam | 70-515 pdf exam | 70-515 braindumps | 70-515 study guides | 70-515 trainning materials | 70-515 simulations | 70-515 testing engine | 70-515 vce | 70-515 torrent | 70-515 dumps | free download 70-515 | 70-515 practice exam | 70-515 preparation files | 70-515 questions | 70-515 answers.
How to pass your 70-515 exam
You can search on Search Engine and Find Best IT Certification site: Test4pass.com - Find the Method to succeed 70-515 test,The safer.easier way to get TS Certification .
Microsoft 70-515 Exam Offical Information
Published: July 02, 2010
Language(s): English
Audience(s): Developers
Technology: Microsoft Visual Studio 2010
Type: Proctored Exam
Credit Toward Certification
When you pass Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4, you complete the requirements for the following certification(s):
MCTS: .NET Framework 4, Web Applications
Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4: counts as credit toward the following certification(s):
MCPD: Web Developer 4
Skills Being Measured
Developing Web Forms Pages (19%)
Configure Web Forms pages.
This objective may include but is not limited to: page directives such as ViewState, request validation, event validation, MasterPageFile; ClientIDMode; using web.config; setting the html doctype
This objective does not include: referencing a master page; adding a title to a Web form
Implement master pages and themes.
This objective may include but is not limited to: creating and applying themes; adding multiple content placeholders; nested master pages; control skins; passing messages between master pages; switching between themes at runtime; loading themes at run time; applying a validation schema
This objective does not include: creating a master page; basic content pages
Implement globalization.
This objective may include but is not limited to: resource files, browser files, CurrentCulture, currentUICulture, ASP:Localize
Handle page life cycle events.
This objective may include but is not limited to: IsPostback, IsValid, dynamically creating controls, control availability within the page life cycle, accessing control values on postback, overriding page events
Implement caching.
This objective may include but is not limited to: data caching; page output caching; control output caching; cache dependencies; setting cache lifetimes; substitution control
This objective does not include: distributed caching (Velocity)
Manage state.
This objective may include but is not limited to: server-side technologies, for example, session and application; client-side technologies, for example, cookies and ViewState; configuring session state (in proc, state server, Microsoft SQL Server; cookieless); session state compression; persisting data by using ViewState; compressing ViewState; moving ViewState
Developing and Using Web Forms Controls (18%)
Validate user input.
This objective may include but is not limited to: client side, server side, and via AJAX; custom validation controls; regex validation; validation groups; datatype check; jQuery validation
This objective does not include: RangeValidator and RequiredValidator
Create page layout.
This objective may include but is not limited to: AssociatedControlID; Web parts; navigation controls; FileUpload controls
This objective does not include: label; placeholder, panel controls; CSS, HTML, referencing CSS files, inlining
Implement user controls.
This objective may include but is not limited to: registering a control; adding a user control; referencing a user control; dynamically loading a user control; custom event; custom properties; setting toolbox visibility
Implement server controls.
This objective may include but is not limited to: composite controls, INamingContainer, adding a server control to the toolbox, global assembly cache, creating a custom control event, globally registering from web.config; TypeConverters
This objective does not include: postback data handler, custom databound controls, templated control
Manipulate user interface controls from code-behind.
This objective may include but is not limited to: HTML encoding to avoid cross-site scripting, navigating through and manipulating the control hierarchy; FindControl; controlRenderingCompatibilityVersion; URL encoding; RenderOuterTable
This objective does not include: Visibility, Text, Enabled properties
Implementing Client-Side Scripting and AJAX (16%)
Add dynamic features to a page by using JavaScript.
This objective may include but is not limited to: referencing c
lient ID; Script Manager; Script combining; Page.clientscript.registerclientscriptblock; Page.clientscript.registerclientscriptinclude; sys.require (scriptloader)
This objective does not include: interacting with the server; referencing JavaScript files; inlining JavaScript
Alter a page dynamically by manipulating the DOM.
This objective may include but is not limited to: using jQuery, adding, modifying, or removing page elements, adding effects, jQuery selectors
This objective does not include: AJAX
Handle JavaScript events.
This objective may include but is not limited to: DOM events, custom events, handling events by using jQuery
Implement ASP.NET AJAX.
This objective may include but is not limited to: client-side templating, creating a script service, extenders (ASP.NET AJAX Control Toolkit), interacting with the server, Microsoft AJAX Client Library, custom extenders; multiple update panels; triggers; UpdatePanel.UpdateMode; Timer
This objective does not include: basic update panel and progress
Implement AJAX by using jQuery.
This objective may include but is not limited to: $.get, $.post, $.getJSON, $.ajax, xml, html, JavaScript Object Notation (JSON), handling return types
This objective does not include: creating a service
Configuring and Extending a Web Application (15%)
Configure authentication and authorization.
This objective may include but is not limited to: using membership, using login controls, roles, location element, protecting an area of a site or a page
This objective does not include: Windows Live; Microsoft Passport; Windows and Forms authentication
Configure providers.
This objective may include but is not limited to: role, membership, personalization, aspnet_regsql.exe
This objective does not include: creating custom providers
Create and configure HttpHandlers and HttpModules.
This objective may include but is not limited to: generic handlers, asynchronous handlers, setting MIME types and other content headers, wiring modules to application events
Configure initialization and error handling.
This objective may include but is not limited to: handling Application_Start, Session_Start, and Application_BeginRequest in global.asax, capturing unhandled exceptions, custom error section of web.config, redirecting to an error page; try and catch; creating custom exceptions
Reference and configure ASMX and WCF services.
This objective may include but is not limited to: adding service reference, adding Web reference, changing endpoints, wsdl.exe, svcutil.exe; updating service URL; shared WCF contracts assembly
This objective does not include: creating WCF and ASMX services
Configure projects and solutions, and reference assemblies.
This objective may include but is not limited to: local assemblies, shared assemblies (global assembly cache), Web application projects, solutions, settings file, configuring a Web application by using web.config or multiple .config files; assemblyinfo
Debug a Web application.
This objective may include but is not limited to: remote, local, JavaScript debugging, attaching to process, logging and tracing, using local IIS, aspnet_regiis.exe
Deploy a Web application.
This objective may include but is not limited to: pre-compilation, publishing methods (e.g.,
MSDeploy, xcopy, and FTP), deploying an MVC application
This objective does not include: application pools, IIS configuration
Displaying and Manipulating Data (19%)
Implement data-bound controls.
This objective may include but is not limited to: advanced customization of DataList, Repeater, ListView, FormsView, DetailsView, TreeView, DataPager, Chart, GridView
This objective does not include: working in Design mode
Implement DataSource controls.
This objective may include but is not limited to: ObjectDataSource, LinqDataSource, XmlDataSource, SqlDataSource, QueryExtender, EntityDataSource
This objective does not include: AccessDataSource, SiteMapDataSource
Query and manipulate data by using LINQ.
This objective may include but is not limited to: transforming data by using LINQ to create XML or JSON, LINQ to SQL, LINQ to Entities, LINQ to objects, managing DataContext lifetime
This objective does not include: basic LINQ to SQL
Create and consume a data service.
This objective may include but is not limited to: WCF, Web service; server to server calls; JSON serialization, XML serialization
This objective does not include: client side, ADO.NET Data Services
Create and configure a Dynamic Data project.
This objective may include but is not limited to: dynamic data controls, custom field templates; connecting to DataContext and ObjectContext
Developing a Web Application by Using ASP.NET MVC 2 (13%)
Create custom routes.
This objective may include but is not limited to: route constraints, route defaults, ignore routes, custom route parameters
Create controllers and actions.
This objective may include but is not limited to: Visual Studio support for right-click context menus; action filters (including Authorize, AcceptVerbs, and custom) and model binders; ActionResult sub-classes
Structure an ASP.NET MVC application.
This objective may include but is not limited to: single project areas (for example, route registration, Visual Studio tooling, and inter-area links); organizing controllers into areas; shared views; content files and folders
Create and customize views.
This objective may include but is not limited to: built-in and custom HTML helpers (for example, HTML.RenderAction and HTML.RenderPartial), strongly typed views, static page checking, templated input helpers, ViewMasterPage, ViewUserControl
This objective does not include: Microsoft.Web.Mvc Futures assembly
1. You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET
page named TestPage.aspx.
You add the following code to the code-behind file of TestPage.aspx.
private void TestMethod()
{
...
}
You define the following delegate.
public delegate void MyEventHandler();
You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the
page's TestMethod method to the event.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following line of code to TestUserControl.ascx.cs.
public event MyEventHandler MyEvent;
B. Add the following line of code to TestUserControl.ascx.cs.
public MyEventHandler MyEvent;
C. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
D. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
Answer: AC
2. You create a custom server control named Task that contains the following code segment. (Line numbers
are included for reference only.)
01 namespace DevControls
02 {
03 public class Task : WebControl
04 {
05 [DefaultValue("")]
06 public string Title { ... }
07
08 protected override void RenderContents(HtmlTextWriter output)
09 {
10 output.Write(Title);
11 }
12 }
13 }
You need to ensure that adding a Task control from the Toolbox creates markup in the following format.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment to the project's AssemblyInfo.cs file.
[assembly: TagPrefix("DevControls", "Dev")]
B. Replace line 05 with the following code segment.
[DefaultValue("New Task")]
C. Insert the following code segment immediately before line 03.
[ToolboxData("")]
D. Replace line 10 with the following code segment.
output.Write("");
Answer: AC
3. You are implementing an ASP.NET page that includes the following drop-down list.
You need to dynamically add values to the end of the drop-down list.
What should you do?
A. Add the following OnPreRender event handler to the asp:DropDownList
protected void MyDropDown_PreRender(object sender, EventArgs e)
{
DropDownList ddl = sender as DropDownList;
Label lbl = new Label();
lbl.Text = "Option";
lbl.ID = "Option";
ddl.Controls.Add(lbl);
}
B. Add the following OnPreRender event handler to the asp:DropDownList
protected void MyDropDown_PreRender(object sender, EventArgs e)
{
DropDownList ddl = sender as DropDownList;
ddl.Items.Add("Option");
}
C. Add the following event handler to the page code-behind.
protected void Page_LoadComplete(object sender, EventArgs e)
{
DropDownList ddl = Page.FindControl("MyDropDown") as DropDownList;
Label lbl = new Label();
lbl.Text = "Option";
lbl.ID = "Option";
ddl.Controls.Add(lbl);
}
D. Add the following event handler to the page code-behind.
protected void Page_LoadComplete(object sender, EventArgs e)
{
DropDownList ddl = Page.FindControl("MyDropDown") as DropDownList;
ddl.Items.Add("Option");
}
Answer: B
4. You create an ASP.NET page that contains the following tag.
Page Name
You need to write code that will change the contents of the tag dynamically when the page is loaded.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)
A. this.hdr1.InnerHtml = "Text";
B. (hdr1.Parent as HtmlGenericControl).InnerText = "Text";
C. HtmlGenericControl h1 = this.FindControl("hdr1") as HtmlGenericControl;
h1.InnerText = "Text";
D. HtmlGenericControl h1 = Parent.FindControl("hdr1") as HtmlGenericControl;
h1.InnerText = "Text";
Answer: AC
5. You are implementing custom ASP.NET server controls.
You have a base class named RotaryGaugeControl and two subclasses named CompassGaugeControl
and SpeedGaugeControl.
Each control requires its own client JavaScript code in order to function properly.
The JavaScript includes functions that are used to create the proper HTML elements for the control.
You need to ensure that the JavaScript for each of these controls that is used in an ASP.NET page is
included in the generated HTML page only once, even if the ASP.NET page uses multiple instances of the
given control.
What should you do?
A. Place the JavaScript in a file named controls.js and add the following code line to the Page_Load
method of each control.
Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "script",
"controls.js");
B. Add the following code line to the Page_Load method of each control, where strJavascript contains the
JavaScript code for the control.
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script",
strJavascript);
C. Add the following code line to the Page_Load method of each control, where CLASSNAME is the name
of the control class and strJavascript contains the JavaScript code for the control.
Page.ClientScript.RegisterStartupScript(typeof(CLASSNAME), "script",
strJavascript);
D. Add the following code line to the Page_Load method of each control, where CLASSNAME is the name
of the control class and strJavascript contains the JavaScript code for the control.
Page.ClientScript.RegisterClientScriptBlock(typeof(CLASSNAME), "script",
strJavascript);
Answer: D
6. You are creating an ASP.NET Web site.
The site is configured to use Membership and Role management providers.
You need to check whether the currently logged-on user is a member of a role named Administrators.
Which code segment should you use?
A. bool isMember = Roles.GetUsersInRole("Administrators").Any();
B. bool isMember = Membership.ValidateUser(User.Identity.Name,
"Administrators");
C. bool isMember = Roles.GetRolesForUser("Administrators").Any();
D. bool isMember = User.IsInRole("Administrators");
Answer: D
7. You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you
register the module in the web.config file.
The CustomModule class contains the following code.
public class CustomModule : IHttpModule
{
string footerContent = "
public void Dispose() {}
}
You need to add code to CustomModule to append the footer content to each processed ASP.NET page.
Which code segment should you use?
A. public CustomModule(HttpApplication app)
{
app.EndRequest += new EventHandler(app_EndRequest);
void app_EndRequest(object sender, EventArgs e)
{
HttpApplication app = sender as HttpApplication;
app.Response.Write(footerContent);
}
B. public void Init(HttpApplication app)
{
app.EndRequest += new EventHandler(app_EndRequest);
void app_EndRequest(object sender, EventArgs e)
{
HttpApplication app = new HttpApplication();
app.Response.Write(footerContent);
}
C. public customModule();
{
HttpApplication app = new HttpApplication();
app.EndRequest += new EventHandler(app_EndRequest);
}
void app_EndRequest(object sender, EventArgs e)
{
HttpApplication app = sender as HttpApplication;
app.Response.Write(footerContent);
}
D. public void Init(HttpApplication app)
{
app.EndRequest += new EventHandler(app_EndRequest);
}
void app_EndRequest(object sender, EventArgs e)
{
HttpApplication app = sender as HttpApplication;
app.Response.Write(footerContent);
}
Answer: D
8. 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.
B. Add the following configuration to the web.config file.
defaultRedirect="~/Error.aspx" />
C. Add the following code segment to the Global.asax file.
void Application_Error(object sender, EventArgs e)
{
Response.Redirect("~/Error.aspx");
}
D. Add the following code segment to the Global.asax file.
void Page_Error(object sender, EventArgs e)
{
Server.Transfer("~/Error.aspx");
}
Answer: B
9. You are implementing an ASP.NET Web site.
The site uses a component that must be dynamically configured before it can be used within site pages.
You create a static method named SiteHelper.Configure that configures the component.
You need to add a code segment to the Global.asax file that invokes the SiteHelper.Configure method the
first time, and only the first time, that any page in the site is requested.
Which code segment should you use?
A. void Application_Start(object sender, EventArgs e)
{
SiteHelper.Configure();
}
B. void Application_Init(object sender, EventArgs e)
{
SiteHelper.Configure();
}
C. void Application_BeginRequest(object sender, EventArgs e)
{
SiteHelper.Configure();
}
D. Object lockObject = new Object();
void Application_BeginRequest(object sender, EventArgs e)
{
lock(lockObject())
{
SiteHelper.Configure();
}
}
Answer: A
10. You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project.
The service includes a method named GetPeople that takes no arguments and returns an array of Person
objects.
The ASP.NET application uses a proxy class to access the service.
You use the Add Service Reference wizard to generate the class.
After you create the proxy, you move the service endpoint to a different port.
You need to configure the client to use the new service address.
In addition, you must change the implementation so that calls to the client proxy will return a List
instead of an array.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. In the context menu for the service reference in the ASP.NET project, select the Configure Service
Reference command, and set the collection type to System.Collections.Generic.List.
B. In the context menu for the service reference in the ASP.NET project, select the Update Service
Reference command to retrieve the new service configuration.
C. Change the service interface and implementation to return a List
D. Edit the address property of the endpoint element in the web.config file to use the new service address.
Answer: AD