PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-515 (update August 24th, 2013)

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4 (update August 24th, 2013)

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?

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 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?


Page 11 of 19« First...910111213...Last »