You are updating an ASP.NET Web Application.
The application includes the fallowing classes.
public class Supervisor
{
public string FirstName { get; set; }
public string LastName { get; set; }
public List
}
public class Employee
{
public String FirstName { get; set; }
public String LastName { get; set; }
}
An application page contains the fallowing markup.
DataSourceID="odsEmployees"> <%#Eval("FirstName") %> <%#Eval("LastName") %> Employees: <%#Eval("FirstName") %> <%#Eval("LastName") %>
SelectMethod="GetSupervisorWithEmployees" TypeName="BusinessLayer">
You need to ensure that the page displays a list of supervisors with their corresponding employees.
What should you do?
A. Bind rptEmployees during the OnItemCommand event of rptSupervisor.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.)
A. Add the following method to the CompanyController class.public ActionResult Info (){return View();}You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is regenerated when fetched after the 10 seconds elapse. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Modify the hosting page's caching directive as follows.Which tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites?
A. System DesignerYou are debugging an ASP.NET web page.
The page includes the following method:
[WebMethod]
public string GetServerString()
{
...
}
The page also includes the following markup:
The following JavaScript code is used to call the GetServerString method:
function GetString()
{
PageMethods.GetServerString(callbackMethod);
}
function callbackMethod(str)
{
...
}
The AJAX calls to the GetServerString method are failing. You need to ensure that the AJAX call to the GetServerString method succeeds.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Set the EnablePageMethods property of the ScriptManager control to true.You are implementing a read-only page that includes the following controls.

You disable view state to improve performance.
You need to ensure that the page is updated to display the latest data when the user clicks the refresh button.
Which code segment should you use?
A. protected void Page_PreInit(object sender, EventArgs e){if (!IsPostBack){gvCustomers.DataSource = GetCustomers();gvCustomers.DataBind();}}You are developing an ASP.NET web page.
You need to ensure that content flows from right to left.
What should you do?
A. In the @Page directive, add an attribute named dir with a value of "RightToLeft"You are implementing a read-only page that includes the following controls.

You disable view state to improve performance. You need to ensure that the page is updated to display the latest data when the user clicks the refresh button. Which code segment should you use?
A. protected void Page_PreInit(object sender, EventArgs e) { if (!IsPostBack) { gvCustomers.DataSource = GetCustomers(); gvCustomers.DataBind(); } }You are developing an ASP.NET Dynamic Data Web application.
Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.
You need to implement the code that displays Yes or No. Which method of the FieldTemplateUserControl class should you override in the BooleanField class?
A. OnLoadYou are developing an ASP.NET web page that includes a textbox control that has ID txtDate. You need to ensure that the user enters a valid date in the text box. Which 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.