Which approach should you recommend?
You are designing the user interface for an ASP.NET Web application. The Web application allows several departments to personalize the style of their sections of the Web application.
All departmental section styles derive from the core styles of the Web application and can only append to the Web application’s core styles. The departmental master pages inherit from the Web application’s master page.
You need to ensure that core CSS styles appear in all pages of the Web application.
Which approach should you recommend?
Which code segment should you use?
You are implementing an ASP.NET page. Client-side script requires data. Your application includes a class named Person with a Name property of type string. The code-behind file of the page includes the following code segment.
public string JsonValue;
List<Person> people = GetPeopleList();
JavaScriptSerializer json = new JavaScriptSerializer();
You need to use the JavaScriptSerializer class to serialize only the Name property of each item in the people list.
Which code segment should you use?
Which two actions should you perform?
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.)
?Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
You are implementing an ASP.NET AJAX page. You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.
You have the following requirements.
?Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
?Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.
You need to configure the panels to meet the requirements.
What should you do?
Which GridView event should you handle?
You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18.
Which GridView event should you handle?
Which two actions should you perform?
You are implementing an ASP. NET MVC 2 Web application. You add a controller named CompanyController. You need to modify the application to handle the URL path /company/info. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which two approaches could you recommend?
You are designing an ASP.NET Web application by using Microsoft Visual Studio 2010. The Web application uses dynamic HTML (DHTML).
You need to ensure that the application functions properly on multiple browser platforms without requiring the installation of a client-side component.
Which two approaches could you recommend? (Each correct answer presents a complete solution. Choose two.)
Which configuration should you use?
You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers.
You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.
Which configuration should you use?
What are two possible ways to achieve this goal?
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.)
Which technologies should you recommend?
You need to recommend appropriate technologies for designing Web forms for entry and retrieval of news items.
Which technologies should you recommend? (Each correct answer presents a complete solution. Choose two.)