You need to ensure that the application can invoke the target service by using the router endpoint
You are creating an ASP.NET Web application.
The application must call a WCF service by using a WCF routing service.
You need to ensure that the application can invoke the target service by using the router endpoint.
What should you do?
What should you set the ClientIDMode property of the DropDownList to?
You are developing an ASP.NET Web page.
You add a data-bound GridView control.
The GridView contains a TemplateField that includesa DropDownList.
You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to
ProductID.
You need to be able to reference individual DropDownList controls from client-side script by using the
ProductID.
What should you set the ClientIDMode property of the DropDownList to?
Gridview: How to change the image of an image control place in each row in a gridview:
Gridview: How to change the image of an image control place in each row in a gridview:
Which FormView property should you set in the code-behind file?
You are developing an ASP.NET Web page.
The page includes a List<Product> instance.
You add a FormView control to display a single Product from this list.
You need to bind the list to the FormView control.
Which FormView property should you set in the code-behind file?
Which configuration should you add to the web.config file?
You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined
as shown in the following list.
Class name: Task
Namespace: DevControls
Assembly: TestServerControl.dll
Base class: System.Web.UI.WebControls.WebControl
You copy TestServerControl.dll to the Web site’s Bin folder.
You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @
Register directive.
Which configuration should you add to the web.config file?
Which attribute should you add to the OutputCache directive?
You are developing an ASP.NET web application.
The application will contain a page that is customized for various browsers. The application will use output
caching to optimize performance.
You need to ensure that the page is cached by browser type and major version only.
Which attribute should you add to the OutputCache directive?
Which two actions should you perform?
You are developing an ASP.NET web page named WebPage.aspx.
The page includes a user control named UserInfoControl.ascx.
You need to expose a control property named FirstName and read its value from the page.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
Which code segment should you add at line 06?
You are developing an ASP.NET Web page.
The page contains the following markup.
<asp:GridView ID=”gvModels” runat=”server” onrowdatabound=”gvModels_RowDataBound”
AutoGenerateColumns=”false”>
<Columns>
<asp:BoundField DataField=”Name” HeaderText=”Model” />
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID=”img” runat=”server” />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
The pages code-behind file includes the following code segment. (Line numbers are included for reference
only.)
01 protected void gvModels_RowDataBound(object sender, GridViewRowEventArgs e)
02 {
03 if (e.Row.RowType == DataControlRowType.DataRow)
04 {
05 CarModel cm = (CarModel)e.Row.DataItem;
06
07 img.ImageUrl = String.Format(“images/{0}.jpg”, cm.ID);
08
09 }
10 }
You need to get a reference to the Image named img.
Which code segment should you add at line 06?
Which two actions should you perform?
You are developing an ASP.NET web page that includes a text box control.
The page includes a server-side method named ValidateValue.
You need to configure the page so that the text boxvalue is validated by using the ValidateValue method.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
Which type should you return from the action method?
You are developing an ASP.NET MVC 2 Web application.
A page makes an AJAX request and expects a list of company names in the following format.
[“Adventure Works”,”Contoso”]
You need to write an action method that returns theresponse in the correct format.
Which type should you return from the action method?