You create a Web page that contains the following div.
You have a JavaScript array named imageurls that contains a list of image URLs. You need to write a JavaScript function that will insert images from the URLs into target.
Which code segment should you use?
A. $(imageurls).each(function(i,url){$("", url).append("#target");});You create a Web page that contains the following image element.
You need to write a JavaScript function that will dynamically change which image is displayed. The function must be compatible across different browsers. Which code segment should you use?
A. function changeImage() {myImage.src = "image2.png"; }You create an ASP.NET page that contains the following tag.
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";You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. In your site's master page, add a call to Sys.loader.defineScripts to define each of the scripts that are used in the site.You are developing an ASP.NET MVC 2 Web Application.
You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization.
Which code segment should you use?
A. public class AccountingController : Controller{public void ExportAsync() {...}[Authorise]public void ExportCompleted() {...}}You create a Web page that contains the span shown in the following line of code.
Text
You need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL.
Which code segment should you use?
A. $.ajax({type: "GET",url: localURL,dataType: "jsonp",success: function(htmlText) {$ ("#span1").text (htmlText);}});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?
A. Rename Email.ascx to String.ascx.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);}You are deloping an ASP.NET Dynamic Data Web application. The application uses entities from a global library named Entities. The Application_Start event contains the following code segment:
DefaultModel.RegisterContect(typeof)(
Entities.MyDBDataContext), new ContextConfiguration() { ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other entities.
What should you do?
A. Set the ScaffoldAllTables property of the ContextConfiguration to true.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?
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.