<?xml version="1.0" standalone="yes"?
You are developing an ASP.NET web page. The page must display data from XML file named
Inventory.xml. Inventory.xml contains data in the following format.
<?xml version=”1.0″ standalone=”yes”?>
<inventory>
<vehicle Make=”BMW” Model=”M3″ Year=”2005″ Price=”30000″ instock=”Yes”>
<Ratings>….</Ratings>
</Vechicle>
….
</Inventory>
You need to display Vehicle elements that have the inStock attribute set to YES. Wich two controls
should you add to the page? (Each control presents part of the solution.Choose two.)
You need to ensure that all uploaded files are saved to the server within one call to a single event handler
You are creating an ASP.NET web page that contains several FileUpload controls. The page will be
posted to the server after one or more image files are selected for upload. You need to ensure that
all uploaded files are saved to the server within one call to a single event handler. What should you
do?
Which markup should you use?
You 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?
Which code segment should you add?
You are developing an ASP.NET MVC 2 Web Application that displays daily blog posts. Visitors access
a blog post page by using a Web address to pass in the year, month, and day -for
example,contoso.com/2010/07/20. The application must register the appropriate route to use the
Display action of the blog controller. Only page visits with a four digit year, two-digit month and twodigit dat can be passed to the action.You need to ensure that the route is registered correctly. Which
code segment should you add?
You need to display Login.ascx in a view
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 need to ensure that only one copy of the class library exists on the server
You are developing an ASP.NET web application. The application includes a class library named
Contoso.dll that will be used by other ASP.Net applications on the same server. You need to ensure
that only one copy of the class library exists on the server. What should you do?
Wich markup should you use?
You are developing an ASP.NET MVC2 application. You add an area named Admin to the application.
Admin contains a controller class name to MainController. You create a view named Index outside
the Admin area. You need to add a link in the Index view that will call the Default action. Wich
markup should you use?
Which control should you use?
You are developing as ASP.NET Web application that will display a list of values. The application must
display the values in a tabular format in columns from top to bottom. You need to choose a control
that can be bound directly to the list to render this display. Which control should you use?
Which code segment should you use?
You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection.
You need to add a text box control to the Panel control. Which code segment should you use?
You need to ensure that the application shows the Order and Customer entities and hides all other entities
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?