CertifyMe. CertifyMe

Size: px
Start display at page:

Download "CertifyMe. CertifyMe"

Transcription

1 CertifyMe Number: Passing Score: 700 Time Limit: 90 min File Version: CertifyMe

2 Exam A QUESTION 1 You add a Web page named HomePage.aspx in the application. The Web page contains different controls. You add a newly created custom control named CachedControl to the Web page. You need to ensure that the following requirements are met: The custom control state remains static for one minute. The custom control settings do not affect the cache settings of other elements in the Web page. A. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybycontrol="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> B. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybyparam="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> C. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybycontrol="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true" /> </caching> D. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following code fragment to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybyparam="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true" /> </caching> Correct Answer: A /Reference: QUESTION 2 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the

3 application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D /Reference: QUESTION 3 You create a Web page named Default.aspx in the root of the application. You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl. You need to retrieve the value of LogoImageUrl. Which code segment should you use? A. string logoimageurl = (string)getlocalresource("logoimageurl"); B. string logoimageurl = (string)getglobalresource("default", "LogoImageUrl"); C. string logoimageurl = (string)getglobalresource("imageresources", "LogoImageUrl"); D. string logoimageurl = (string)getlocalresource("imageresources.logoimageurl"); Correct Answer: C /Reference: QUESTION 4 You create a custom Web user control named SharedControl. The control will be compiled as a library.

4 You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 protected override void OnInit(EventArgs e) 02 { 03 base.oninit(e); All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="C#" EnableViewState="false" %> You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 04? A. Page.RegisterRequiresPostBack(this); B. Page.RegisterRequiresControlState(this); C. Page.UnregisterRequiresControlState(this); D. Page.RegisterStartupScript("SharedControl","server"); Correct Answer: B /Reference: QUESTION 5 You create a Web page named entername.aspx. The Web page contains a TextBox control named txtname. The Web page cross posts to a page named displayname.aspx that contains a Label control named lblname. You need to ensure that the lblname Label control displays the text that was entered in the txtname TextBox control. Which code segment should you use? A. lblname.text = Request.QueryString["txtName"]; B. TextBox txtname = FindControl("txtName") as TextBox;lblName.Text = txtname.text; C. TextBox txtname = Parent.FindControl("txtName") as TextBox;lblName.Text = txtname.text; D. TextBox txtname = PreviousPage.FindControl("txtName") as TextBox;lblName.Text = txtname.text; Correct Answer: D /Reference: QUESTION 6

5 When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase. What are three possible reasons that could cause this increase? (Each correct answer presents a complete solution. Choose three.) A. Restart of the Microsoft IIS 6.0 host. B. Restart of the Microsoft Windows Server 2003 that hosts the Web application. C. Addition of a new assembly in the Bin directory of the application. D. Addition of a code segment that requires recompilation to the ASP.NET Web application. E. Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application. F. Modification to the Web.config file in the system.web section for debugging the application. Correct Answer: CDE /Reference: QUESTION 7 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. A JavaScript code segment in the AJAX application does not exhibit the desired behavior. Microsoft Internet Explorer displays an error icon in the status bar but does not prompt you to debug the script. You need to configure the Internet Explorer to prompt you to debug the script. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Clear the Disable Script Debugging (Other) check box. B. Clear the Disable Script Debugging (Internet Explorer) check box. C. Select the Show friendly HTTP error messages check box. D. Select the Enable third-party browser extensions check box. E. Select the Display a notification about every script error check box. Correct Answer: BE /Reference: QUESTION 8 The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.

6 You need to ensure that the following requirements are met: When the user requests a page that does not exist, the PageNotFound.htm page is displayed. When any other error occurs, the ErrorPage.htm page is displayed. Which section should you add to the Web.config file? A. <customerrors mode="off" defaultredirect="errorpage.htm"> <error statuscode="404" redirect="pagenotfound.htm"/> </customerrors> B. <customerrors mode="on" defaultredirect="errorpage.htm"> <error statuscode="404" redirect="pagenotfound.htm"/> </customerrors> C. <customerrors mode="off"> <error statuscode="400" redirect="errorpage.htm"/> <error statuscode="404" redirect="pagenotfound.htm"/> </customerrors> D. <customerrors mode="on"> <error statuscode="400" redirect="errorpage.htm"/> <error statuscode="404" redirect="pagenotfound.htm"/> </customerrors> Correct Answer: B /Reference: QUESTION 9 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. You need to ensure that the application displays the details of the client-side object on the debugger console. A. Use the Sys.Debug.fail method. B. Use the Sys.Debug.trace method. C. Use the Sys.Debug.assert method. D. Use the Sys.Debug.traceDump method. Correct Answer: D /Reference: QUESTION 10 You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound to an XML document with the following structure. <?xml version="1.0" encoding="utf-8"?> <clients>

7 <client ID="1" Name="John Evans" /> <client ID="2" Name="Mike Miller"/>... </clients> You also write the following code segment in the code-behind file of the Web page. protected void BulletedList1_Click( object sender, BulletedListEventArgs e) { //... You need to add a BulletedList control named BulletedList1 to the Web page that is bound to XmlDataSource1. Which code fragment should you use? A. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="LinkButton" DataSource="XmlDataSource1" DataTextField="Name" DataValueField="ID" onclick="bulletedlist1_click"></asp:bulletedlist> B. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="HyperLink" DataSourceID="XmlDataSource1" DataTextField="Name" DataMember="ID" onclick="bulletedlist1_click"></asp:bulletedlist> C. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="LinkButton" DataSourceID="XmlDataSource1" DataTextField="Name" DataValueField="ID" onclick="bulletedlist1_click"></asp:bulletedlist> D. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="HyperLink" DataSourceID="XmlDataSource1" DataTextField="ID" DataValueField="Name" onclick="bulletedlist1_click"></asp:bulletedlist> Correct Answer: C /Reference: QUESTION 11 You create a custom control named OrderForm. You write the following code segment. public delegate void CheckOrderFormEventHandler(EventArgs e); private static readonly object CheckOrderFormKey = new object(); public event CheckOrderFormEventHandler CheckOrderForm { add { Events.AddHandler(CheckOrderFormKey, value); remove { Events.RemoveHandler(CheckOrderFormKey, value); You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event. Which code segment should you use?

8 A. protected virtual void OnCheckOrderForm(EventArgs e) { CheckOrderFormEventHandler checkorderform = (CheckOrderFormEventHandler)Events[typeof (CheckOrderFormEventHandler)]; if (checkorderform!= null) checkorderform(e); B. protected virtual void OnCheckOrderForm(EventArgs e) { CheckOrderFormEventHandler checkorderform = Events[CheckOrderFormKey] as CheckOrderFormEventHandler; if (checkorderform!= null) checkorderform(e); C. CheckOrderFormEventHandler checkorderform = new CheckOrderFormEventHandler (checkorderformcallback); protected virtual void OnCheckOrderForm(EventArgs e) { if (checkorderform!= null) checkorderform(e); D. CheckOrderFormEventHandler checkorderform = new CheckOrderFormEventHandler (checkorderformcallback); protected virtual void OnCheckOrderForm(EventArgs e) { if (checkorderform!= null) RaiseBubbleEvent(checkOrderForm, e); Correct Answer: B /Reference: QUESTION 12 The application has a Web form file named MovieReviews.aspx. The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID. The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for reference only.) 01 <asp:detailsview ID="DetailsView1" runat="server" 02 DataSourceID="LinqDataSource1" /> 05 <Fields> 06 <asp:boundfield DataField="MovieID" HeaderText="MovieID" 07 InsertVisible="False" 08 ReadOnly="True" SortExpression="MovieID" /> 09 <asp:boundfield DataField="Title" HeaderText="Title" 10 SortExpression="Title" /> 11 <asp:boundfield DataField="Theater" HeaderText="Theater" 12 SortExpression="Theater" /> 13 <asp:commandfield ShowDeleteButton="false" 14 ShowEditButton="True" ShowInsertButton="True" /> 15 </Fields> 16 </asp:detailsview>

9 You need to ensure that the users can insert and update content in the DetailsView1 control. You also need to prevent duplication of the link button controls for the Edit and New operations. Which code segment should you insert at line 03? A. AllowPaging="false"AutoGenerateRows="false" B. AllowPaging="true"AutoGenerateRows="false"DataKeyNames="MovieID" C. AllowPaging="true"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false" D. AllowPaging="false"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false"DataKeyNames="MovieID" Correct Answer: B /Reference: QUESTION 13 You write the following code fragment. (Line numbers are included for reference only.) 01 <asp:requiredfieldvalidator 02 ID="rfValidator1" runat="server" 03 Display="Dynamic" ControlToValidate="TextBox1" > </asp:requiredfieldvalidator> <asp:validationsummary DisplayMode="List" 10 ID="ValidationSummary1" runat="server" /> You need to ensure that the error message displayed in the validation control is also displayed in the validation summary list. A. Add the following code segment to line 06. Required text in TextBox1 B. Add the following code segment to line 04. Text="Required text in TextBox1" C. Add the following code segment to line 04. ErrorMessage="Required text in TextBox1" D. Add the following code segment to line 04. Text="Required text in TextBox1" ErrorMessage="ValidationSummary1" Correct Answer: C /Reference: QUESTION 14 You write the following code fragment. <asp:dropdownlist AutoPostBack="true"

10 ID="DropDownList1" runat="server" onselectedindexchanged= "DropDownList1_SelectedIndexChanged"> <asp:listitem>1</asp:listitem> <asp:listitem>2</asp:listitem> <asp:listitem>3</asp:listitem> </asp:dropdownlist> You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls. You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control. Which code segment should you use? A. int idx = DropDownList1.SelectedIndex;MultiView1.ActiveViewIndex = idx; B. int idx = DropDownList1.SelectedIndex;MultiView1.Views[idx].Visible = true; C. int idx = int.parse(dropdownlist1.selectedvalue);multiview1.activeviewindex = idx; D. int idx = int.parse(dropdownlist1.selectedvalue);multiview1.views[idx].visible = true; Correct Answer: A /Reference: QUESTION 15 The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment. You need to configure SessionState for the application. Which code fragment should you use? A. <sessionstate mode="inproc" cookieless="usecookies" /> B. <sessionstate mode="inproc" cookieless="usedeviceprofile" /> C. <sessionstate mode="sqlserver" cookieless="false" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> D. <sessionstate mode="sqlserver" cookieless="useuri" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> Correct Answer: C /Reference: QUESTION 16 The computer that hosts the ASP.NET Web application contains a local instance of Microsoft SQL Server The instance uses Windows Authentication. You plan to configure the membership providers and the role management providers. You need to install the database elements for both the providers on the local computer.

11 A. Run the sqlcmd.exe -S localhost E command from the command line. B. Run the aspnet_regiis.exe -s localhost command from the command line. C. Run the sqlmetal.exe /server:localhost command from the command line. D. Run the aspnet_regsql.exe -E -S localhost -A mr command from the command line. Correct Answer: D /Reference: QUESTION 17 You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file. You need to ensure that only the Sales group users can access the file. What additional step should you perform? A. Remove the rights from the ASP.NET user to the file. B. Remove the rights from the application pool identity to the file. C. Add the <identity impersonate="true"/> section to the Web.config file. D. Add the <authentication mode="[none]"> section to the Web.config file. Correct Answer: C /Reference: QUESTION 18 You create a Web form that contains the following code fragment. <asp:textbox runat="server" ID="txtSearch" /> <asp:button runat="server" ID="btnSearch" Text="Search" OnClick="btnSearch_Click" /> <asp:gridview runat="server" ID="gridCities" /> You write the following code segment in the code-behind file. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 DataSet objds = new DataSet(); 04 SqlDataAdapter objda = new SqlDataAdapter(objCmd); 05 objda.fill(objds); 06 gridcities.datasource = objds; 07 gridcities.databind(); 08 Session["ds"] = objds; 09

12 10 protected void btnsearch_click(object sender, EventArgs e) 11 { You need to ensure that when the btnsearch Button control is clicked, the records in the gridcities GridView control are filtered by using the value of the txtsearch TextBox. Which code segment you should insert at line 12? A. DataSet ds = gridcities.datasource as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); B. DataSet ds = Session["ds"] as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); C. DataTable dt = Session["ds"] as DataTable; DataView dv = dt.defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); D. DataSet ds = Session["ds"] as DataSet; DataTable dt = ds.tables[0]; DataRow[] rows = dt.select("cityname LIKE '" + txtsearch.text + "%'"); gridcities.datasource = rows; gridcities.databind(); Correct Answer: B /Reference: QUESTION 19 You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.) 01 string strquery = "select * from Products;" 02 + "select * from Categories"; 03 SqlCommand cmd = new SqlCommand(strQuery, cnn); 04 cnn.open(); 05 SqlDataReader rdr = cmd.executereader(); rdr.close(); 08 cnn.close(); You need to ensure that the gvproducts and gvcategories GridView controls display the data that is contained in the following two database tables: The Products database table The Categories database table Which code segment should you insert at line 06? A. gvproducts.datasource = rdr;gvproducts.databind();gvcategories.datasource = rdr;gvcategories.databind(); B. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); C. gvproducts.datasource = rdr;rdr.nextresult();gvcategories.datasource =

13 rdr;gvproducts.databind();gvcategories.databind(); D. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();rdr.nextresult();gvcategories.databind(); Correct Answer: D /Reference: QUESTION 20 You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment. <asp:formview DataSourceID="ObjectDataSource1" DataKeyNames="PhotoID" runat="server"> <EditItemTemplate> <asp:textbox Text='<%# Bind("Caption") %>' runat="server"/> <asp:button Text="Update" CommandName="Update" runat="server"/> <asp:button Text="Cancel" CommandName="Cancel" runat="server"/> </EditItemTemplate> <ItemTemplate> <asp:label Text='<%# Eval("Caption") %>' runat="server" /> <asp:button Text="Edit" CommandName="Edit" runat="server"/> </ItemTemplate> </asp:formview> When you access the Web page, the application throws an error. You need to ensure that the application successfully updates each caption and stores it in the database. A. Add the ID attribute to the Label control. B. Add the ID attribute to the TextBox control. C. Use the Bind function for the Label control instead of the Eval function. D. Use the Eval function for the TextBox control instead of the Bind function. Correct Answer: B /Reference: QUESTION 21 The application consumes an ASMX Web service. The Web service is hosted at the following URL.

14 You need to ensure that the client computers can communicate with the service as part of the <system.servicemodel> configuration. Which code fragment should you use? A. <client> <endpointaddress=" binding="wshttpbinding" /> </client> B. <client> <endpoint address=" binding="basichttpbinding" /> </client> C. <client> <endpoint address=" binding="ws2007httpbinding" /> </client> D. <client> <endpoint address=" binding="wsdualhttpbinding" /> </client> Correct Answer: B /Reference: QUESTION 22 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. he application contains the following device filter element in the Web.config file. <filter name="ishtml" compare="preferredrenderingtype" argument="html32" /> The application contains a Web page that has the following image control. (Line numbers are included for reference only.) 01 <mobile:image ID="imgCtrl" Runat="server"> </mobile:image> You need to ensure that the following conditions are met: - The imgctrl Image control displays the highres.jpg file if the Web browser supports html. - The imgctrl Image control displays lowres.gif if the Web browser does not support html. Which DeviceSpecific element should you insert at line 02? A. <DeviceSpecific> <Choice Filter="isHtml" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /> </DeviceSpecific> B. <DeviceSpecific> <Choice Filter="isHtml" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="isHtml" Argument="true" ImageUrl="lowRes.gif" /> </DeviceSpecific> C. <DeviceSpecific>

15 <Choice Filter="PreferredRenderingType" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /> </DeviceSpecific> D. <DeviceSpecific> <Choice Filter="PreferredRenderingType" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="PreferredRenderingType" Argument="true" ImageUrl="lowRes.gif" /> </DeviceSpecific> Correct Answer: A /Reference: QUESTION 23 You create a Web form by using ASP.NET AJAX. You write the following client-script code fragment to handle the exceptions thrown from asynchronous postbacks. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function pageload() 03 { 04 var pagemgr = 05 Sys.WebForms.PageRequestManager.getInstance(); function errorhandler(sender, args) 10 { </script> You need to ensure that the application performs the following tasks: - Use a common client-script function named errorhandler. - Update a Label control that has an ID named lblerror with the error message. - Prevent the browser from displaying any message box or Javascript error. A. Insert the following code segment at line 06. pagemgr.add_endrequest(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; args.set_errorhandled(true); B. Insert the following code segment at line 06. pagemgr.add_endrequest(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; C. Insert the following code segment at line 06. pagemgr.add_pageloaded(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; args.set_errorhandled(true); D. Insert the following code segment at line 06. pagemgr.add_pageloaded(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; Correct Answer: A

16 /Reference: QUESTION 24 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a login Web form by using the following code fragment. <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:textbox runat="server" ID="txtUser" Width="200px" /> <asp:textbox runat="server" ID="txtPassword" Width="200px" /> <asp:button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnlogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the client-side script. You also add the following client-script code fragment in the Web form. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function login() { 03 var username = $get('txtuser').value; 04 var password = $get('txtpassword').value; // authentication logic function onlogincompleted(validcredentials, usercontext, 09 methodname) 10 { 11 // notify user on authentication result function onloginfailed(error, usercontext, methodname) 15 { 16 // notify user on authentication exception </script> The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file. You need to ensure that the following workflow is maintained: - On successful authentication, the onlogincompleted client-script function is called to notify the user. - On failure of authentication, the onloginfailed client-script function is called to display an error message. Which code segment should you insert at line 06? A. var auth = Sys.Services.AuthenticationService; auth.login(username, password, false, null, null,onlogincompleted, onloginfailed, null); B. var auth = Sys.Services.AuthenticationService; auth.set_defaultfailedcallback(onloginfailed);var validcredentials = auth.login(username, password, false, null, null, null, null, null);if (validcredentials)onlogincompleted(true, null, null);elseonlogincompleted(false, null, null);

17 C. var auth = Sys.Services.AuthenticationService;auth.set_defaultLoginCompletedCallback(onLoginCo mpleted);try { auth.login(username, password, false, null, null, null, null, null); catch (err) { onloginfailed(err, null, null); D. var auth = Sys.Services.AuthenticationService;try { var validcredentials = auth.login(username, password, false, null, null, null, null, null); if (validcredentials) onlogincompleted(true, null, null); else onlogincompleted(false, null, null);catch (err) { onloginfailed(err, null, null); Correct Answer: A /Reference: QUESTION 25 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You write the following code fragment. (Line numbers are included for reference only.) 01 <asp:updatepanel ID="upnData" runat="server" 02 ChildrenAsTriggers="false" UpdateMode="Conditional"> 03 <Triggers> </Triggers> 06 <ContentTemplate> 07 <!-- more content here --> 08 <asp:linkbutton ID="lbkLoad" runat="server" Text="Load" 09 onclick="lbkload_click" /> 10 <asp:button ID="btnSubmit" runat="server" Text="Submit" 11 Width="150px" onclick="btnsubmit_click" /> 12 </ContentTemplate> 13 </asp:updatepanel> 14 <asp:button ID="btnUpdate" runat="server" Text="Update" 15 Width="150px" onclick="btnupdate_click" /> You need to ensure that the requirements shown in the following table are met. A. Set the value of the ChildrenAsTriggers property in line 02 to false. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnUpdate" /> <asp:postbacktrigger ControlID="btnSubmit" /> B. Set the value of the ChildrenAsTriggers property in line 02 to false. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnSubmit" /> <asp:postbacktrigger ControlID="btnUpdate" />

18 C. Set the value of the ChildrenAsTriggers property in line 02 to true. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnSubmit" /> <asp:postbacktrigger ControlID="btnUpdate" /> D. Set the value of the ChildrenAsTriggers property in line 02 to true. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnUpdate" /> <asp:postbacktrigger ControlID="btnSubmit" /> Correct Answer: D /Reference: QUESTION 26 You are creating an ASP.NET application by using the.net Framework 3.5. The application has performance problems. You plan to collect sample timing information for each page. You need to ensure that while collecting the information, the following requirements are met: The application remains online. The trace output is not visible to end users. The trace output contains the rendering time for all controls on all the pages. A. Set the Trace.IsEnabled property to true in the OnLoad event of each page. B. Set the HttpContext.Current.Trace.IsEnabled property to true in the BeginRequest event handler. C. For the trace element in the Web.config file, set the enabled attribute and the pageoutput attribute to true. D. For the trace element in the Web.config file, set the enabled attribute to true and the pageoutput attribute to false. Correct Answer: D /Reference: QUESTION 27 You are creating ASP.NET applications by using the.net Framework 3.5. The application uses the health monitoring events to raise application audit events in the following scenarios: When users log in When users change their passwords When users perform other security-related actions You need to ensure that the application logs all audit events for all applications on the Web server. A. Configure the eventmappings node in the Web.config file so that it contains an entry for Success Audits.

19 B. Configure the eventmappings node in the Machine.config file so that it contains an entry for Success Audits. C. Configure the eventmappings node in the Web.config file so that a single entry for auditing events is present for All Audits. D. Configure the eventmappings node in the Machine.config file so that a single entry for auditing events is present for All Audits. Correct Answer: D /Reference: QUESTION 28 You are creating ASP.NET applications by using the.net Framework 3.5. The application occasionally experiences errors that cannot be reproduced on a test environment. You need to ensure that the application meets the following requirements: All unexpected errors are logged. Logging is configured with a minimum amount of modification to the application code. A. Enable the <customerrors> element in the Web.config file. Set the mode attribute to On. B. Add an event handler for the Application.Error event to the Global.asax file of the application. C. Override the base class for all forms in the application to add the TRY/CATCH blocks to all the major functionalities. D. Configure the application to redirect to a custom error page by using the <customerrors> element in the Web.config file of the application. Correct Answer: B /Reference: QUESTION 29 You are creating an ASP.NET application by using the.net Framework 3.5. The application must meet the following requirements: Create a tracking number to identify errors. Display the tracking number to the user when an error occurs. You need to ensure that all the exceptions that contain the tracking number are logged. You also need to ensure that the exceptions to new pages that are added to the application are also logged in the same manner. A. Log the exception in the Page_Error event of each page.redirect to the customerror.aspx page, and pass

20 the tracking number in the query string. B. Log the exception in the Application_Error event of the Global.asax file.redirect to the customerror.aspx page, and pass the tracking number in the query string. C. In the <customerror> section of the Web.config file, add the <error statuscode="500" redirect="customerror.aspx" /> element. In the customerror.aspx page, obtain the exception by calling the Server.GetLastError() method and display the tracking number. D. In the <customerror> section of the Web.config file, add the <error statuscode="500" redirect="customerror.aspx?trackingnumber" /> element. Log the exception in the Application_Error event of the Global.asax file. Correct Answer: B /Reference: QUESTION 30 You are creating an ASP.NET application by using the.net Framework 3.5. The application will not be deployed on a Web farm or a Web garden scenario. The application must meet the following requirements: It stores shopping cart data for each user for the entire lifetime of an active session. The shopping cart data can be stored regardless of browser settings. You need to ensure optimal performance of the application for the shopping cart functionality. Which storage mechanism should you use to store the shopping cart data? A. Cookies B. State server C. Microsoft SQL Server D. In-memory of the Web server process Correct Answer: D /Reference: QUESTION 31 You are creating an ASP.NET application by using the.net Framework 3.5. You create an AJAX Web form in the application. You create an ASP.NET AJAX client-component class in the Web form. The class will be used in a JavaScript function in the Web form. You plan to debug the JavaScript function. You need to display all the fields of the AJAX client-component object in the trace console in the Web form by using the minimum amount of code. Which method should you use? A. Sys.Debug.fail B. Sys.Debug.trace

21 C. Sys.Debug.assert D. Sys.Debug.traceDump Correct Answer: D /Reference: QUESTION 32 You are an ASP.NET application developer. You plan to debug an ASP.NET application that is developed by using Microsoft.NET Framework 2.0. You set a breakpoint in the JavaScript code that is stored in an external file. The application fails to stop at the breakpoint. You need to debug the application by using Microsoft Visual Studio You want to achieve this goal by using the least amount of development effort. A. Load the ASP.NET page before you set the breakpoint. B. Enable script debugging in Microsoft Internet Explorer. C. Change the ASP.NET page to use inline JavaScript code instead of an external file. D. Change the ASP.NET version of the application domain that hosts the application to ASP.NET 3.5. Correct Answer: B /Reference: QUESTION 33 You are creating an ASP.NET application by using the.net Framework 3.5. Based on the user name and the time of the day, you are required to provide the following features: 1. Branding of images 2. Control colors 3. Page layouts You need to provide these features on each page of the application when the page requests are made. A. In the PreInit event of each page, set the theme and the master page dynamically. B. In the Page Load event of each page, set the theme and the master page dynamically. C. Store the feature settings in resource files in the App_LocalResources folder for each user. In the PreInit event of each page, read from the resource files. D. Store the feature settings in resource files in the App_LocalResources folder for each user. In the Page Load event of each page, read from the resource files. Correct Answer: A /Reference:

22 QUESTION 34 You are creating an ASP.NET application by using the.net Framework 3.5. You need to ensure that the application meets the following requirements: The layout that must be applied to the pages in the application can be selected by the developers. The layout of the pages can be modified by the developers without the source code modification. A consistent page layout is maintained. A. Create multiple themes for the application. Specify a theme for the application in the Web.config file. B. Create multiple master pages for the application. Specify the master page for the application in the Web.config file. C. Create a master page that uses multiple Web Part zones. Disable membership and personalization for the application. D. Ensure that all pages use multiple Web Part zones. Enable membership and personalization for the application. Correct Answer: B /Reference: QUESTION 35 You are creating ASP.NET applications by using the.net Framework 3.5. The applications will be hosted on the same physical Web server. You have the following page layout requirements: A common page layout that applies to all the ASP.NET pages across the Web applications All pages to automatically reflect changes that are made to the common page layout You create a master page that provides the page layout. You need to implement a solution that meets the layout requirements. Which three additional tasks should you perform? (Each correct answer presents part of the solution. Choose three.) A. Add MasterType directive to each ASP.NET page. B. Add a ContentPlaceholder control to each ASP.NET page. C. Copy the master page into a single folder on the Web server. D. Set the MasterPageFile property on each ASP.NET page to the virtual path of the master page file. E. Configure a virtual directory within the default Web site, and point the virtual directory to the folder that contains the master page. F. Configure a virtual directory within each Web application, and point the virtual directory to the folder that contains the master page. Correct Answer: CDF

23 /Reference: QUESTION 36 You are creating an ASP.NET application by using the.net Framework 3.5. The application displays a price list that contains 100 items. The customers use desktop computers, PDAs, mobile phones, or other mobile devices to access the application. The application uses a master page that includes the following layout: A site header at the top of the page. A navigation structure at the side of the page. Content on the remaining space on the page. You need to ensure optimal rendering of the price list for each customer, irrespective of the device category used. A. Create a custom master page for mobile-device browsers.implement a MobilePage class for each device category. B. Create a custom master page for mobile-device browsers.modify the page that contains the price list to use device filters along with the MasterPageFile attribute of directive. C. Add a MultiView control and two View controls to the existing page that contains the price list. Set the ActiveViewIndex value of the MultiView control after you evaluate the Request.Browser.Type property. D. Add a ListView control and a DataPager control to the existing page that contains the price list. Set the PageSize value of the DataPager control after you evaluate the Request.Browser.ScreenPixelsHeight property. Correct Answer: B /Reference: QUESTION 37 You are creating an ASP.NET application by using the.net Framework 3.5. Airline passengers access the application over the Internet and from airport kiosks around the world. The airport kiosks do not allow users to modify browser settings. You have created language-specific resources for all static text elements in the application. You need to ensure that the content is displayed in the preferred language of the users, regardless of their physical location. A. Set the value of the Page.UICulture property to a value stored in a user profile property. B. Set the value of the UICulture attribute to auto within Page directive on each ASP.NET page. C. Set the value of the Thread.CurrentThread.CurrentUICulture property to CultureInfo.InvariantCulture. D. Set the value of the enableclientbasedculture attribute to true within the globalization element of the Web.config file. Correct Answer: A

24 /Reference: QUESTION 38 You are creating an ASP.NET application by using the.net Framework 3.5. The application stores sensitive profile data in a Microsoft SQL Server 2008 database. You need to ensure that no profile data is stored in clear text. A. Enable the secure sockets layer encryption for the SQL Server connections. B. Use the aspnet_regiis tool to encrypt the connection string that is used to connect to the SQL Server 2008 database. C. Create a strongly typed custom Profile class. In the Profile class, encrypt the provided information before storing it in the database. D. Create a custom profile provider. In the custom provider, ensure that the provided information is encrypted before storing it in the database. Correct Answer: D /Reference: QUESTION 39 You are creating an ASP.NET application by using the.net Framework 3.5. The application will be accessed by users in remote locations over the Internet. You plan to use ASP.NET role management. You need to ensure that any authorization information cached on remote client computers is as secure as possible. A. Use the System.Configuration.RsaProtectedConfigurationProvider class. B. Use the System.Configuration.DpapiProtectedConfigurationProvider class. C. Set the cookieprotection attribute to Validation in the rolemanager element of the Web.config file. D. Set the cookieprotection attribute to Encryption in the rolemanager element of the Web.config file. Correct Answer: D /Reference: QUESTION 40 You are maintaining an ASP.NET application by using the.net Framework 3.5. The application uses Forms authentication. Security testing of the application reveals that users can access the sessions of other users on different computers. You need to configure the application to eliminate the vulnerability.

25 A. Add the following element to the Web.config file. <forms cookieless="useuri"> B. Add the following element to the Web.config file. <forms cookieless="usecookies"> C. Add the following element to the Web.config file. <forms requiressl="false"> D. Add the following element to the Web.config file. <forms requiressl="true"> Correct Answer: B /Reference: QUESTION 41 You are creating an ASP.NET application by using the.net Framework 3.5. The application will be accessed by Internet users. You plan to enable users to authenticate from the client-side script. You add the following code fragment in the Web.config file of the application. <system.web.extensions> <scripting> <webservices> <authenticationservice enabled="true" /> </webservices> </scripting> </system.web.extensions> You need to configure the application to ensure user credentials are validated against Active Directory by using the client-side script. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Configure the application to use the ActiveDirectoryMembershipProvider class. B. Configure the application to use the ClientWindowsAuthenticationMembershipProvider class. C. Add the following code fragment to the Web.config file of the application. <authentication mode="none" /> D. Add the following code fragment to the Web.config file of the application. <authentication mode="forms" /> E. Add the following code fragment to the Web.config file of the application. <authentication mode="windows" /> Correct Answer: AD /Reference: QUESTION 42 You are creating an ASP.NET application by using the.net Framework 3.5. The application must use an existing Microsoft SQL Server database that stores user names and passwords in the same table. You are not allowed to change the database schema. You need to ensure that the application can use the Login, LoginView, LoginStatus, LoginName, and PasswordRecovery controls to manage user data.

26 A. Use the SqlProfileProvider class. B. Use the SqlMembershipProvider class. C. Implement a custom profile provider. D. Implement a custom membership provider. Correct Answer: D /Reference: QUESTION 43 You are creating an ASP.NET application by using the.net Framework 3.5. The application stores user names and passwords in the database. You need to ensure that the passwords are encrypted and cannot be decrypted. A. Encrypt passwords by using the Rijndael algorithm before the passwords are stored in the database. B. Encrypt passwords by using the Secure Hash algorithm before the passwords are stored in the database. C. Encrypt passwords by using the Triple Data Encryption Standard algorithm before the passwords are stored in the database. D. Create an instance of the System.Security.SecureString class to hold passwords before the passwords are stored in the database. Correct Answer: B /Reference: QUESTION 44 You are creating an ASP.NET application by using Microsoft.NET Framework 3.5. The application is a library application that catalogs subjects and books. The application contains a DataContext object named Subjects and a related line of business object named Books. The Subjects DataContext object is queried by using the following LINQ query. var query = from subject in Subjects where subject.books.all(b => b.price <= 25) select subject; You need to find out the results that will be returned from the query. What is the result of the query? A. All books that have a price less than or equal to 25 B. All books that have a price greater than or equal to 25 C. All subjects that have the price of the related book less than or equal to 25 D. All subjects that have the price of the related book greater than or equal to 25 Correct Answer: C

27 /Reference: QUESTION 45 You are creating an ASP.NET application by using the.net Framework 3.5. The application will contain a Data Access Layer (DAL) that will support databases from third-party vendors. The application will display data by using a GridView control. You need to ensure that the application meets the following requirements: Allow paging Provide optimistic concurrency Which data access object should you use in the DAL? A. SqlDataReader B. SqlDataAdapter C. OleDbDataReader D. OleDbDataAdapter Correct Answer: D /Reference: QUESTION 46 You are creating ASP.NET applications by using the.net Framework 3.5. You plan to evaluate an application design that has the following specifications: Data is stored in a Microsoft SQL Server 2008 database. Data is retrieved by using a DataContext object. Data is displayed by using GridView controls. You need to choose an appropriate data source control that can be used in the design of the application. Which data source control should you use? A. SqlDataSource B. XmlDataSource C. LinqDataSource D. ObjectDataSource Correct Answer: C /Reference: QUESTION 47 You are creating ASP.NET applications by using the.net Framework 3.5.

28 The application has two tables named Products and ProductPrice. The application retrieves and stores data from the Product table into a Dataset object. The application uses the DataSet object to modify and update the data that is retrieved. The update command for the related SqlDataAdapter class is generated automatically by using a SqlCommandBuilder object. You plan to retrieve and modify data from the Product and ProductPrice tables as a unit. You need to ensure that the application can update the data in the tables. A. Call the SqlCommandBuilder.RefreshSchema() method before calling the Update() method of the SqlDataAdapter class. B. Call the SqlCommandBuilder.GetUpdateCommand() method before calling the Update() method of the SqlDataAdapter class. C. Set the UpdateCommand property of the SqlDataAdapter class to a SqlCommand object. Use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. D. Set the DataAdapter property of the SqlCommandBuilder class to the SqlDataAdapter object. Use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. Correct Answer: C /Reference: QUESTION 48 You are creating an ASP.NET application by using the.net Framework 3.5. You need to create a UI element in the application to meet the following requirements: Custom logic can be implemented. The element can be used in multiple places on each page. The element can be used on multiple pages within the application. The element can be redistributed for use in other applications without sharing source code or layout files. A. Create a theme. B. Create a master page. C. Create a user control. D. Create a custom Web control. Correct Answer: D /Reference: QUESTION 49 You are creating an ASP.NET application by using the.net Framework 3.5. You plan to develop a custom control library. Developers will use the control on Web pages in multiple applications. Each ASP.NET application will be configured by using different state management strategies. You need to ensure consistent state management for all instances of the control. Which state repository should you choose?

29 A. ViewState B. ControlState C. SessionState D. ApplicationState Correct Answer: B /Reference: QUESTION 50 You are creating an ASP.NET application by using the.net Framework 3.5. You review the design of an ASP.NET Web form that collects text input. The Web form design has the following features: It uses the single-file page model that has script blocks which specify the runat="server" attribute. It includes a TextBox control. It includes a LinkButton control to submit the Web form. It includes a RegularExpressionValidator control that validates the text input. You need to ensure that the Web form functions properly in browsers that have JavaScript support disabled. A. Convert the Web form from the single-file page model to the code-behind page model. B. Replace the TextBox control with an HtmlInputText control. C. Replace the LinkButton control with an HtmlInputSubmit control. D. Replace the RegularExpressionValidator control with a custom server-side validation that calls the Page.SetFocus method if the input does not match the required format. Correct Answer: C /Reference: QUESTION 51 The application has a mobile Web form that contains the following ObjectList control. <mobile:objectlist ID="ObjectListCtrl" OnItemCommand="ObjectListCtrl_ItemCommand" Runat="server"> <Command Name="CmdDisplayDetails" Text="Details" /> <Command Name="CmdRemove" Text="Remove" /> </mobile:objectlist>

30 You create an event handler named ObjectListCtrl_ItemCommand. You need to ensure that the ObjectListCtrl_ItemCommand handler detects the selection of the CmdDisplayDetails item. Which code segment should you write? A. public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) { if (e.commandname == "CmdDisplayDetails") { B. public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) { if (e.commandargument.tostring() == "CmdDisplayDetails") { C. public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) { ObjectListCommand cmd = sender as ObjectListCommand; if (cmd.name == "CmdDisplayDetails") { D. public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) { ObjectListCommand cmd = e.commandsource as ObjectListCommand; if (cmd.name == "CmdDisplayDetails") { Correct Answer: A /Reference: QUESTION 52 You create a Web page that has a GridView control named GridView1. The GridView1 control displays the data from a database named Region and a table named Location. You write the following code segment to populate the GridView1 control. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 string connstr; SqlDependency.Start(connstr); 06 using (SqlConnection connection = 07 new SqlConnection(connstr)) 08 { 09 SqlCommand sqlcmd = new SqlCommand(); 10 DateTime expires = DateTime.Now.AddMinutes(30); 11 SqlCacheDependency dependency = new 12 SqlCacheDependency("Region", "Location");

31 13 Response.Cache.SetExpires(expires); 14 Response.Cache.SetValidUntilExpires(true); 15 Response.AddCacheDependency(dependency); sqlcmd.connection = connection; 18 GridView1.DataSource = sqlcmd.executereader(); 19 GridView1.DataBind(); You need to ensure that the proxy servers can cache the content of the GridView1 control. Which code segment should you insert at line 16? A. Response.Cache.SetCacheability(HttpCacheability.Private); B. Response.Cache.SetCacheability(HttpCacheability.Public); C. Response.Cache.SetCacheability (HttpCacheability.Server); D. Response.Cache.SetCacheability (HttpCacheability.ServerAndPrivate); Correct Answer: B /Reference: QUESTION 53 The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost. A. Use the InProc Session Management mode to store session data in the ASP.NET worker process. B. Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. C. Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. D. Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm. Correct Answer: B /Reference: QUESTION 54 You create a page that contains the following code fragment. <asp:listbox ID="lstLanguages" AutoPostBack="true" runat="server" />

32 You write the following code segment in the code-behind file for the page. void BindData(object sender, EventArgs e) { lstlanguages.datasource = CultureInfo.GetCultures(CultureTypes.AllCultures); lstlanguages.datatextfield = "EnglishName"; lstlanguages.databind(); You need to ensure that the lstlanguages ListBox control maintains the selection of the user during postback. Which line of code should you insert in the constructor of the page? A. this.init += new EventHandler(BindData); B. this.prerender += new EventHandler(BindData); C. lstlanguages.prerender += new EventHandler(BindData); D. lstlanguages.selectedindexchanged += new EventHandler(BindData); Correct Answer: A /Reference: QUESTION 55 You create a Web page named Default.aspx in the root of the application. You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl. You need to retrieve the value of LogoImageUrl. Which code segment should you use? A. string logoimageurl = (string)getlocalresource("logoimageurl"); B. string logoimageurl = (string)getglobalresource("default", "LogoImageUrl"); C. string logoimageurl = (string)getglobalresource("imageresources", "LogoImageUrl"); D. string logoimageurl = (string)getlocalresource("imageresources.logoimageurl"); Correct Answer: C /Reference: QUESTION 56 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add a Web page named HomePage.aspx in the application. The Web page contains different controls. You add a newly created custom control named CachedControl to the Web page. You need to ensure that the following requirements are met: The custom control state remains static for one minute. The custom control settings do not affect the cache settings of other elements in the Web page.

33 A. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybycontrol="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> B. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybyparam="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> C. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybycontrol="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> D. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following code fragment to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybyparam="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> Correct Answer: A /Reference: QUESTION 57 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. You need to ensure that the application displays the details of the client-side object on the debugger console. A. Use the Sys.Debug.fail method. B. Use the Sys.Debug.trace method. C. Use the Sys.Debug.assert method. D. Use the Sys.Debug.traceDump method. Correct Answer: D

34 /Reference: QUESTION 58 You add the following code fragment to the Web.config file of the application (Line numbers are included for reference only). 01 <healthmonitoring> 02 <providers> 03 <add name="eventlogprovider" 04 type="system.web.management.eventlogwebeventprovider 05 /> 06 <add name="wmiwebeventprovider" 07 type="system.web.management.wmiwebeventprovider 08 /> 09 </providers> 10 <eventmappings> </eventmappings> 13 <rules> 14 <add name="security Rule" eventname="security Event" 15 provider="wmiwebeventprovider" /> 16 <add name="apperror Rule" eventname="apperror Event" 17 provider="eventlogprovider" /> 18 </rules> 19 </healthmonitoring> You need to configure Web Events to meet the following requirements: Security-related Web Events are mapped to Microsoft Windows Management Instrumentation (WMI) events. Web Events caused by problems with configuration or application code are logged into the Windows Application Event Log. Which code fragment should you insert at line 11? A. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> B. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/> C. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> D. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/> Correct Answer: B /Reference: QUESTION 59 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. You use AJAX-enabled components in the Web page. You add a ScriptManager control to the page. The Web.config file has the following code fragment.

35 <deployment retail="false" /> You receive an unhandled exception in the browser. You plan to debug the client-side script. You need to ensure that the debug scripts are sent to the browser. A. Add the following attribute to the ScriptManager control. ScriptMode="Debug" B. Add the following attribute to the ScriptManager control. ScriptMode="Release" C. Set up directive on the Web page in the following manner. debug="true" > D. Set up the compilation element in the Web.config file in the following manner. <compilation debug="true"> Correct Answer: A /Reference: QUESTION 60 The application contains two Web pages named OrderDetails.aspx and OrderError.htm. If the application throws unhandled errors in the OrderDetails.aspx Web page, a stack trace is displayed to remote users. You need to ensure that the OrderError.htm Web page is displayed for unhandled errors only in the OrderDetails.aspx Web page. A. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" %> Add the following section to the Web.config file. <customerrors mode="off" defaultredirect="ordererror.htm"></customerrors> B. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" %> Add the following section to the Web.config file. <customerrors mode="on" defaultredirect="ordererror.htm"> C. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" ErrorPage="~/OrderError.htm" Debug="false" %> Add the following section to the Web.config file. <customerrors mode="on"></customerrors> D. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" ErrorPage="~/OrderError.htm" %> Add the following section to the Web.config file. <customerrors mode="off"></customerrors> Correct Answer: C

36 /Reference: QUESTION 61 You create a Web page that contains the following two XML fragments. (Line numbers are included for reference only.) 01 <script runat="server"> </script> 04 <asp:listview ID="ListView1" runat="server" 05 DataSourceID="SqlDataSource1" > 08 <ItemTemplate> 09 <td> 10 <asp:label ID="LineTotalLabel" runat="server" 11 Text='<%# Eval("LineTotal") %>' /> 12 </td> 13 </ItemTemplate> The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal. You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color. A. Insert the following code segment at line 06. OnItemDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr(object sender, ListViewItemEventArgs e) { Label LineTotal = (Label) e.item.findcontrol("linetotallabel"); if ( LineTotal.Text.Length > 7) { LineTotal.ForeColor = Color.Red; else {LineTotal.ForeColor = Color.Black; B. Insert the following code segment at line 06. OnItemDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr(object sender, ListViewItemEventArgs e) { Label LineTotal = (Label) e.item.findcontrol("linetotal"); if ( LineTotal.Text.Length > 7) {LineTotal.ForeColor = Color.Red; else {LineTotal.ForeColor = Color.Black; C. Insert the following code segment at line 06. OnDataBinding="FmtClr" Insert the following code segment at line 02. protected void FmtClr(object sender, EventArgs e){ Label LineTotal = new Label(); LineTotal.ID = "LineTotal"; if ( LineTotal.Text.Length > 7) {LineTotal.ForeColor = Color.Red; else { LineTotal.ForeColor = Color.Black; D. Insert the following code segment at line 06. OnDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr(object sender, EventArgs e){ Label LineTotal = new Label(); LineTotal.ID = "LineTotalLabel"; if ( LineTotal.Text.Length > 7) {LineTotal.ForeColor = Color.Red; else {LineTotal.ForeColor = Color.Black; Correct Answer: A /Reference:

37 QUESTION 62 You write the following code fragment. <asp:radiobutton ID="RadioButton1" runat="server" oncheckedchanged="radiobutton_checkedchanged"/> <asp:radiobutton ID="RadioButton2" runat="server" oncheckedchanged="radiobutton_checkedchanged"/> <asp:radiobutton ID="RadioButton3" runat="server" oncheckedchanged="radiobutton_checkedchanged"/> You need to ensure that the following requirements are met: Users can select only one RadioButton control at a time. The Web page is not reloaded when a RadioButton control is selected. What you should do? A. Add the following attribute for each of the RadioButton controls. GroupName="group1" B. Add the following attribute for each of the RadioButton controls. ValidationGroup="group1" C. Add the following code fragment to the RadioButton_CheckedChanged method. (sender as RadioButton).Checked = true; D. Add the following code fragment to the RadioButton_CheckedChanged method. RadioButton1.Checked = (RadioButton1 == sender);radiobutton2.checked = (RadioButton2 == sender);radiobutton3.checked = (RadioButton3 == sender); Correct Answer: A /Reference: QUESTION 63 You write the following code fragment. <asp:listbox SelectionMode="Multiple" ID="ListBox1" runat="server"></asp:listbox> <asp:listbox ID="ListBox2" runat="server"></asp:listbox> <asp:button ID="Button1" runat="server" Text="Button" onclick="button1_click" /> You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control. Which code segment should you use? A. foreach (ListItem li in ListBox1.Items) { if (li.selected) { ListBox2.Items.Add(li); ListBox1.Items.Remove(li); B. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); ListBox1.Items.Remove(li); C. foreach (ListItem li in ListBox1.Items) { if (li.selected) {

38 li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); D. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); Correct Answer: C /Reference: QUESTION 64 You derive a new validation control from the BaseValidator class. The validation logic for the control is implemented in the Validate method in the following manner. protected static bool Validate(string value) {... You need to override the method that validates the value of the related control. Which override method should you use? A: B: C: D: A. protected override bool EvaluateIsValid() { string value = GetControlValidationValue( this.attributes["associatedcontrol"]); bool isvalid = Validate(value); return isvalid; B. protected override bool ControlPropertiesValid() { string value = GetControlValidationValue(this.ValidationGroup); bool isvalid = Validate(value); return isvalid; C. protected override bool EvaluateIsValid() { string value = GetControlValidationValue(this.ControlToValidate); bool isvalid = Validate(value); return isvalid;

39 D. protected override bool ControlPropertiesValid() { string value = GetControlValidationValue( this.attributes["controltovalidate"]); bool isvalid = Validate(value); this.propertiesvalid = isvalid; return true; Correct Answer: C /Reference: QUESTION 65 You create the following controls: A composite custom control named MyControl. A templated custom control named OrderFormData. You write the following code segment to override the method named CreateChildControls() in the MyControl class. (Line numbers are included for reference only.) 01 protected override void 02 CreateChildControls() { 03 Controls.Clear(); 04 OrderFormData ofdata = new 05 OrderFormData("OrderForm"); You need to add the OrderFormData control to the MyControl control. Which code segment should you insert at line 06? A. Controls.Add(oFData); Template.InstantiateIn(this); B. Template.InstantiateIn(oFData); Controls.Add(oFData); C. this.controls.add(ofdata); this.templatecontrol = (TemplateControl)Template; D. ofdata.templatecontrol = (TemplateControl)Template; Controls.Add(oFData); Correct Answer: B /Reference: QUESTION 66 You create a login Web form by using the following code fragment.

40 <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:textbox runat="server" ID="txtUser" Width="200px" /> <asp:textbox runat="server" ID="txtPassword" Width="200px" /> <asp:button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnlogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the client-side script. You also add the following client-script code fragment in the Web form. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function login() { 03 var username = $get('txtuser').value; 04 var password = $get('txtpassword').value; // authentication logic function onlogincompleted(validcredentials, usercontext, 09 methodname) 10 { 11 // notify user on authentication result function onloginfailed(error, usercontext, methodname) 15 { 16 // notify user on authentication exception </script> The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file. You need to ensure that the following workflow is maintained: On successful authentication, the onlogincompleted client-script function is called to notify the user. On failure of authentication, the onloginfailed client-script function is called to display an error message. Which code segment should you insert at line 06? A. var auth = Sys.Services.AuthenticationService; auth.login(username, password, false, null, null,onlogincompleted, onloginfailed, null); B. var auth = Sys.Services.AuthenticationService; auth.set_defaultfailedcallback(onloginfailed); var validcredentials = auth.login(username, password, false, null, null, null, null, null); if (validcredentials) onlogincompleted(true, null, null); else onlogincompleted(false, null, null); C. var auth = Sys.Services.AuthenticationService;auth.set_defaultLoginCompletedCallback (onlogincompleted); try { auth.login(username, password, false, null, null, null, null, null); catch (err) { onloginfailed(err, null, null); D. var auth = Sys.Services.AuthenticationService; try { var validcredentials = auth.login(username, password, false, null, null, null, null, null); if (validcredentials) onlogincompleted(true, null, null);

41 else onlogincompleted(false, null, null); catch (err) { onloginfailed(err, null, null); Correct Answer: A /Reference: QUESTION 67 You write the following code segment to create a client-script function. (Line numbers are included for reference only.) 01 function updatelabelcontrol(labelid, newtext) { 02 var label = $find(labelid); 03 label.innerhtml = newtext; 04 The client script function uses ASP.NET AJAX and updates the text of any Label control in the Web form. When you test the client script function, you discover that the Label controls are not updated. You receive the following JavaScript error message in the browser: "'null' is null or not an object." You need to resolve the error. A. Replace line 03 with the following line of code. label.innertext = newtext; B. Replace line 02 with the following line of code. var label = $get(labelid); C. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($get (labelid)); D. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($find (labelid)); Correct Answer: B /Reference: QUESTION 68 You write the following code fragment. <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:updatepanel ID="updateLabels" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:label ID="Label1" runat="server" /> <asp:label ID="Label2" runat="server" /> <asp:button ID="btnSubmit" runat="server" Text="Submit" onclick="btnsubmit_click" /> </ContentTemplate>

42 </asp:updatepanel> <asp:label id="label3" runat="server" /> You need to ensure that when you click the btnsubmit Button control, each Label control value is asynchronously updatable. Which code segment should you use? A. protected void btnsubmit_click(object sender, EventArgs e){ Label1.Text = "Label1 updated value"; Label2.Text = "Label2 updated value"; Label3.Text = "Label3 updated value"; B. protected void btnsubmit_click(object sender, EventArgs e){ Label1.Text = "Label1 updated value"; Label2.Text = "Label2 updated value"; ScriptManager1.RegisterDataItem(Label3, "Label3 updated value"); C. protected void btnsubmit_click(object sender, EventArgs e){ ScriptManager1.RegisterDataItem(Label1, "Label1 updated value"); ScriptManager1.RegisterDataItem(Label2, "Label2 updated value"); Label3.Text = "Label3 updated value"; D. protected void btnsubmit_click(object sender, EventArgs e){ Label1.Text = "Label1 updated value"; Label2.Text = "Label2 updated value"; ScriptManager1.RegisterAsyncPostBackControl(Label3); Label3.Text = "Label3 updated value"; Correct Answer: B /Reference: QUESTION 69 The application consumes a Microsoft Windows Communication Foundation (WCF) service. The WCF service exposes the following method. [WebInvoke] string UpdateCustomerDetails(string custid); The application hosts the WCF service by using the following code segment. WebServiceHost host = new WebServiceHost(typeof(CService), new Uri(" ServiceEndpoint ep = host.addserviceendpoint(typeof(icservice), new WebHttpBinding(), ""); You need to invoke the UpdateCustomerDetails method. Which code segment should you use? A. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri(" ICService channel = wcf.createchannel(); string s = channel.updatecustomerdetails("custid12"); B. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri("

43 UpdateCustomerDetails")); ICService channel = wcf.createchannel(); string s = channel.updatecustomerdetails("custid12"); C. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new WebHttpBinding(), "http: //win/ UpdateCustomerDetails"); ICService channel = cf.createchannel(); string s = channel.updatecustomerdetails("custid12"); D. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new BasicHttpBinding(), "http: //win") cf.endpoint.behaviors.add(new WebHttpBehavior()); ICService channel = cf.createchannel(); string s = channel.updatecustomerdetails("custid12"); Correct Answer: A /Reference: QUESTION 70 You create a class that contains the following code segment. (Line numbers are included for reference only.) 01 public object GetCachedProducts(sqlConnection conn) { if (Cache["products"] == null) { 04 SqlCommand cmd = new SqlCommand( 05 "SELECT * FROM Products", conn); 07 conn.open(); 08 Cache.Insert("products", GetData(cmd)); 09 conn.close(); return Cache["products"]; public object GetData(SqlCommand prodcmd) { Each time a Web form has to access a list of products, the GetCachedProducts method is called to provide this list from the Cache object. You need to ensure that the list of products is always available in the Cache object. Which code segment should you insert at line 15? A. return prodcmd.executereader(); B. SqlDataReader dr; prodcmd.commandtimeout = int.maxvalue; dr = prodcmd.executereader(); return dr; C. SqlDataAdapter da = new SqlDataAdapter(); da.selectcommand = prodcmd; DataSet ds = new DataSet(); return ds.tables[0]; D. SqlDataAdapter da = new SqlDataAdapter(prodCmd); DataSet ds = new DataSet();

44 da.fill(ds); return ds; Correct Answer: D /Reference: QUESTION 71 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D /Reference: QUESTION 72 You are creating an ASP.NET application by using the.net Framework 3.5. Airline passengers access the application over the Internet and from airport kiosks around the world. The airport kiosks do not allow users to modify browser settings. You have created language-specific resources for all static text elements in the application. You need to ensure that the content is displayed in the preferred language of the users, regardless of their physical location.

45 A. Set the value of the Page.UICulture property to a value stored in a user profile property. B. Set the value of the UICulture attribute to auto within Page directive on each ASP.NET page. C. Set the value of the Thread.CurrentThread.CurrentUICulture property to CultureInfo.InvariantCulture. D. Set the value of the enableclientbasedculture attribute to true within the globalization element of the Web.config file. Correct Answer: A /Reference: QUESTION 73 You add the following code fragment to the Web.config file of the application (Line numbers are included for reference only). 01 <healthmonitoring> 02 <providers> 03 <add name="eventlogprovider" 04 type="system.web.management.eventlogwebeventprovider 05 /> 06 <add name="wmiwebeventprovider" 07 type="system.web.management.wmiwebeventprovider 08 /> 09 </providers> 10 <eventmappings> </eventmappings> 13 <rules> 14 <add name="security Rule" eventname="security Event" 15 provider="wmiwebeventprovider" /> 16 <add name="apperror Rule" eventname="apperror Event" 17 provider="eventlogprovider" /> 18 </rules> 19 </healthmonitoring> You need to configure Web Events to meet the following requirements: Security-related Web Events are mapped to Microsoft Windows Management Instrumentation (WMI) events. Web Events caused by problems with configuration or application code are logged into the Windows Application Event Log. Which code fragment should you insert at line 11? A. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> B. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/> C. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> D. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/>

46 Correct Answer: B /Reference: QUESTION 74 You write the following code fragment. <asp:listbox SelectionMode="Multiple" ID="ListBox1" runat="server"></asp:listbox> <asp:listbox ID="ListBox2" runat="server"></asp:listbox> <asp:button ID="Button1" runat="server" Text="Button" onclick="button1_click" /> You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control. Which code segment should you use? A. foreach (ListItem li in ListBox1.Items) { if (li.selected) { ListBox2.Items.Add(li); ListBox1.Items.Remove(li); B. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); ListBox1.Items.Remove(li); C. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); D. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); Correct Answer: C /Reference: QUESTION 75

47 You write the following code segment to create a client-script function. (Line numbers are included for reference only.) 01 function updatelabelcontrol(labelid, newtext) { 02 var label = $find(labelid); 03 label.innerhtml = newtext; 04 The client script function uses ASP.NET AJAX and updates the text of any Label control in the Web form. When you test the client script function, you discover that the Label controls are not updated. You receive the following JavaScript error message in the browser: "'null' is null or not an object." You need to resolve the error. A. Replace line 03 with the following line of code. label.innertext = newtext; B. Replace line 02 with the following line of code. var label = $get(labelid); C. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($get (labelid)); D. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($find (labelid)); Correct Answer: B /Reference: QUESTION 76 You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 protected override void OnInit(EventArgs e) 02 { 03 base.oninit(e); All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="C#" EnableViewState="false" %> You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 04? A. Page.RegisterRequiresPostBack(this); B. Page.RegisterRequiresControlState(this); C. Page.UnregisterRequiresControlState(this);

48 D. Page.RegisterStartupScript("SharedControl","server"); Correct Answer: B /Reference: QUESTION 77 You are creating an ASP.NET application by using the.net Framework 3.5. You create an AJAX Web form in the application. You create an ASP.NET AJAX client-component class in the Web form. The class will be used in a JavaScript function in the Web form. You plan to debug the JavaScript function. You need to display all the fields of the AJAX client-component object in the trace console in the Web form by using the minimum amount of code. Which method should you use? A. Sys.Debug.fail B. Sys.Debug.trace C. Sys.Debug.assert D. Sys.Debug.traceDump Correct Answer: D /Reference: QUESTION 78 You add the following code fragment to the Web.config file of the application (Line numbers are included for reference only). 01 <healthmonitoring> 02 <providers> 03 <add name="eventlogprovider" 04 type="system.web.management.eventlogwebeventprovider 05 /> 06 <add name="wmiwebeventprovider" 07 type="system.web.management.wmiwebeventprovider 08 /> 09 </providers> 10 <eventmappings> </eventmappings> 13 <rules> 14 <add name="security Rule" eventname="security Event" 15 provider="wmiwebeventprovider" /> 16 <add name="apperror Rule" eventname="apperror Event" 17 provider="eventlogprovider" /> 18 </rules> 19 </healthmonitoring>

49 You need to configure Web Events to meet the following requirements: Security-related Web Events are mapped to Microsoft Windows Management Instrumentation (WMI) events. Web Events caused by problems with configuration or application code are logged into the Windows Application Event Log. Which code fragment should you insert at line 11? A. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> B. <add name="security Event" type="system.web.management.webauditevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/> C. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.webrequesterrorevent"/> D. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/> <add name="apperror Event" type="system.web.management.weberrorevent"/> Correct Answer: B /Reference: QUESTION 79 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D

50 /Reference: QUESTION 80 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D /Reference: QUESTION 81 You create a Web form by using ASP.NET AJAX. You write the following client-script code fragment to handle the exceptions thrown from asynchronous postbacks. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function pageload() 03 { 04 var pagemgr = 05 Sys.WebForms.PageRequestManager.getInstance(); 06 07

51 08 09 function errorhandler(sender, args) 10 { </script> You need to ensure that the application performs the following tasks: - Use a common client-script function named errorhandler. - Update a Label control that has an ID named lblerror with the error message. - Prevent the browser from displaying any message box or Javascript error. A. Insert the following code segment at line 06. pagemgr.add_endrequest(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; args.set_errorhandled(true); B. Insert the following code segment at line 06. pagemgr.add_endrequest(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; C. Insert the following code segment at line 06. pagemgr.add_pageloaded(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; args.set_errorhandled(true); D. Insert the following code segment at line 06. pagemgr.add_pageloaded(errorhandler); Insert the following code segment at line 11. if (args.get_error()!= null) { $get('lblerror').innerhtml = args.get_error().message; Correct Answer: A /Reference: QUESTION 82 You are creating ASP.NET applications by using the.net Framework 3.5. The application has two tables named Products and ProductPrice. The application retrieves and stores data from the Product table into a Dataset object. The application uses the DataSet object to modify and update the data that is retrieved. The update command for the related SqlDataAdapter class is generated automatically by using a SqlCommandBuilder object. You plan to retrieve and modify data from the Product and ProductPrice tables as a unit. You need to ensure that the application can update the data in the tables. A. Call the SqlCommandBuilder.RefreshSchema() method before calling the Update() method of the SqlDataAdapter class. B. Call the SqlCommandBuilder.GetUpdateCommand() method before calling the Update() method of the SqlDataAdapter class. C. Set the UpdateCommand property of the SqlDataAdapter class to a SqlCommand object. Use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. D. Set the DataAdapter property of the SqlCommandBuilder class to the SqlDataAdapter object. Use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. Correct Answer: C

52 /Reference: QUESTION 83 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add a Web page named HomePage.aspx in the application. The Web page contains different controls. You add a newly created custom control named CachedControl to the Web page. You need to ensure that the following requirements are met: The custom control state remains static for one minute. The custom control settings do not affect the cache settings of other elements in the Web page. A. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybycontrol="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> B. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybyparam="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> C. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybycontrol="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> D. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following code fragment to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybyparam="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> Correct Answer: A /Reference: QUESTION 84

53 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D /Reference: QUESTION 85 You write the following code segment to create a client-script function. (Line numbers are included for reference only.) 01 function updatelabelcontrol(labelid, newtext) { 02 var label = $find(labelid); 03 label.innerhtml = newtext; 04 The client script function uses ASP.NET AJAX and updates the text of any Label control in the Web form. When you test the client script function, you discover that the Label controls are not updated. You receive the following JavaScript error message in the browser: "'null' is null or not an object." You need to resolve the error. A. Replace line 03 with the following line of code. label.innertext = newtext;

54 B. Replace line 02 with the following line of code. var label = $get(labelid); C. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($get (labelid)); D. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($find (labelid)); Correct Answer: B /Reference: QUESTION 86 You create a Web page named entername.aspx. The Web page contains a TextBox control named txtname. The Web page cross posts to a page named displayname.aspx that contains a Label control named lblname. You need to ensure that the lblname Label control displays the text that was entered in the txtname TextBox control. Which code segment should you use? A. lblname.text = Request.QueryString["txtName"]; B. TextBox txtname = FindControl("txtName") as TextBox;lblName.Text = txtname.text; C. TextBox txtname = Parent.FindControl("txtName") as TextBox;lblName.Text = txtname.text; D. TextBox txtname = PreviousPage.FindControl("txtName") as TextBox;lblName.Text = txtname.text; Correct Answer: D /Reference: QUESTION 87 You create a Web form that contains the following code fragment. <asp:textbox runat="server" ID="txtSearch" /> <asp:button runat="server" ID="btnSearch" Text="Search" OnClick="btnSearch_Click" /> <asp:gridview runat="server" ID="gridCities" /> You write the following code segment in the code-behind file. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 DataSet objds = new DataSet(); 04 SqlDataAdapter objda = new SqlDataAdapter(objCmd); 05 objda.fill(objds); 06 gridcities.datasource = objds; 07 gridcities.databind(); 08 Session["ds"] = objds;

55 09 10 protected void btnsearch_click(object sender, EventArgs e) 11 { You need to ensure that when the btnsearch Button control is clicked, the records in the gridcities GridView control are filtered by using the value of the txtsearch TextBox. Which code segment you should insert at line 12? A. DataSet ds = gridcities.datasource as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); B. DataSet ds = Session["ds"] as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); C. DataTable dt = Session["ds"] as DataTable; DataView dv = dt.defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); D. DataSet ds = Session["ds"] as DataSet; DataTable dt = ds.tables[0]; DataRow[] rows = dt.select("cityname LIKE '" + txtsearch.text + "%'"); gridcities.datasource = rows; gridcities.databind(); Correct Answer: B /Reference: QUESTION 88 You are maintaining an ASP.NET application by using the.net Framework 3.5. The application uses Forms authentication. Security testing of the application reveals that users can access the sessions of other users on different computers. You need to configure the application to eliminate the vulnerability. A. Add the following element to the Web.config file. <forms cookieless="useuri"> B. Add the following element to the Web.config file. <forms cookieless="usecookies"> C. Add the following element to the Web.config file. <forms requiressl="false"> D. Add the following element to the Web.config file. <forms requiressl="true"> Correct Answer: B /Reference: QUESTION 89 You write the following code fragment. <asp:listbox SelectionMode="Multiple" ID="ListBox1" runat="server"></asp:listbox>

56 <asp:listbox ID="ListBox2" runat="server"></asp:listbox> <asp:button ID="Button1" runat="server" Text="Button" onclick="button1_click" /> You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control. Which code segment should you use? A. foreach (ListItem li in ListBox1.Items) { if (li.selected) { ListBox2.Items.Add(li); ListBox1.Items.Remove(li); B. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); ListBox1.Items.Remove(li); C. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); D. foreach (ListItem li in ListBox1.Items) { if (li.selected) { li.selected = false; ListBox2.Items.Add(li); foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); Correct Answer: C /Reference: QUESTION 90 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme.

57 A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D /Reference: QUESTION 91 You create a Web page named Default.aspx in the root of the application. You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl. You need to retrieve the value of LogoImageUrl. Which code segment should you use? A. string logoimageurl = (string)getlocalresource("logoimageurl"); B. string logoimageurl = (string)getglobalresource("default", "LogoImageUrl"); C. string logoimageurl = (string)getglobalresource("imageresources", "LogoImageUrl"); D. string logoimageurl = (string)getlocalresource("imageresources.logoimageurl"); Correct Answer: C /Reference: QUESTION 92 You create a Web page named entername.aspx. The Web page contains a TextBox control named txtname. The Web page cross posts to a page named displayname.aspx that contains a Label control named lblname. You need to ensure that the lblname Label control displays the text that was entered in the txtname TextBox control. Which code segment should you use?

58 A. lblname.text = Request.QueryString["txtName"]; B. TextBox txtname = FindControl("txtName") as TextBox;lblName.Text = txtname.text; C. TextBox txtname = Parent.FindControl("txtName") as TextBox;lblName.Text = txtname.text; D. TextBox txtname = PreviousPage.FindControl("txtName") as TextBox;lblName.Text = txtname.text; Correct Answer: D /Reference: QUESTION 93 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. You need to ensure that the application displays the details of the client-side object on the debugger console. A. Use the Sys.Debug.fail method. B. Use the Sys.Debug.trace method. C. Use the Sys.Debug.assert method. D. Use the Sys.Debug.traceDump method. Correct Answer: D /Reference: QUESTION 94 The application has a Web form file named MovieReviews.aspx. The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID. The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for reference only.) 01 <asp:detailsview ID="DetailsView1" runat="server" 02 DataSourceID="LinqDataSource1" /> 05 <Fields> 06 <asp:boundfield DataField="MovieID" HeaderText="MovieID" 07 InsertVisible="False" 08 ReadOnly="True" SortExpression="MovieID" /> 09 <asp:boundfield DataField="Title" HeaderText="Title" 10 SortExpression="Title" />

59 11 <asp:boundfield DataField="Theater" HeaderText="Theater" 12 SortExpression="Theater" /> 13 <asp:commandfield ShowDeleteButton="false" 14 ShowEditButton="True" ShowInsertButton="True" /> 15 </Fields> 16 </asp:detailsview> You need to ensure that the users can insert and update content in the DetailsView1 control. You also need to prevent duplication of the link button controls for the Edit and New operations. Which code segment should you insert at line 03? A. AllowPaging="false"AutoGenerateRows="false" B. AllowPaging="true"AutoGenerateRows="false"DataKeyNames="MovieID" C. AllowPaging="true"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false" D. AllowPaging="false"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false"DataKeyNames="MovieID" Correct Answer: B /Reference: QUESTION 95 You write the following code fragment. <asp:dropdownlist AutoPostBack="true" ID="DropDownList1" runat="server" onselectedindexchanged= "DropDownList1_SelectedIndexChanged"> <asp:listitem>1</asp:listitem> <asp:listitem>2</asp:listitem> <asp:listitem>3</asp:listitem> </asp:dropdownlist> You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls. You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control. Which code segment should you use? A. int idx = DropDownList1.SelectedIndex;MultiView1.ActiveViewIndex = idx; B. int idx = DropDownList1.SelectedIndex;MultiView1.Views[idx].Visible = true; C. int idx = int.parse(dropdownlist1.selectedvalue);multiview1.activeviewindex = idx; D. int idx = int.parse(dropdownlist1.selectedvalue);multiview1.views[idx].visible = true; Correct Answer: A /Reference:

60 QUESTION 96 You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file. You need to ensure that only the Sales group users can access the file. What additional step should you perform? A. Remove the rights from the ASP.NET user to the file. B. Remove the rights from the application pool identity to the file. C. Add the <identity impersonate="true"/> section to the Web.config file. D. Add the <authentication mode="[none]"> section to the Web.config file. Correct Answer: C /Reference: QUESTION 97 You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.) 01 string strquery = "select * from Products;" 02 + "select * from Categories"; 03 SqlCommand cmd = new SqlCommand(strQuery, cnn); 04 cnn.open(); 05 SqlDataReader rdr = cmd.executereader(); rdr.close(); 08 cnn.close(); You need to ensure that the gvproducts and gvcategories GridView controls display the data that is contained in the following two database tables: The Products database table The Categories database table Which code segment should you insert at line 06? A. gvproducts.datasource = rdr;gvproducts.databind();gvcategories.datasource = rdr;gvcategories.databind(); B. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); C. gvproducts.datasource = rdr;rdr.nextresult();gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); D. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();rdr.nextresult();gvcategories.databind(); Correct Answer: D

61 /Reference: QUESTION 98 You are creating an ASP.NET application by using the.net Framework 3.5. You create an AJAX Web form in the application. You create an ASP.NET AJAX client-component class in the Web form. The class will be used in a JavaScript function in the Web form. You plan to debug the JavaScript function. You need to display all the fields of the AJAX client-component object in the trace console in the Web form by using the minimum amount of code. Which method should you use? A. Sys.Debug.fail B. Sys.Debug.trace C. Sys.Debug.assert D. Sys.Debug.traceDump Correct Answer: D /Reference: QUESTION 99 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add a Web page named HomePage.aspx in the application. The Web page contains different controls. You add a newly created custom control named CachedControl to the Web page. You need to ensure that the following requirements are met: The custom control state remains static for one minute. The custom control settings do not affect the cache settings of other elements in the Web page. A. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybycontrol="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings> </caching> B. Add the following code fragment to the Web.config file of the solution. <caching> <outputcachesettings> <outputcacheprofiles> <add name="cachedprofileset" varybyparam="cachedcontrol" duration="60" /> </outputcacheprofiles> </outputcachesettings>

62 </caching> C. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybycontrol="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> D. Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Add the following code fragment to the Web.config file of the solution. <ProfileCache profile="cachedprofileset" varybyparam="cachedcontrol" duration="60"></profilecache> <caching> <outputcache enableoutputcache="true"/> </caching> Correct Answer: A /Reference: QUESTION 100 The application uses 10 themes and allows the users to select their themes for the Web page. When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer. The application runs on different storage types and in different environments. You need to store the themes that are selected by the users and retrieve the required theme. A: B: C: D: A. Use the Application object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Application object each time the user visits a page. B. Use the Session object to store the name of the theme that is selected by the user. Retrieve the required theme name from the Session object each time the user visits a page. C. Use the Response.Cookies collection to store the name of the theme that is selected by the user. Use the Request.Cookies collection to identify the theme that was selected by the user each time the user visits a page. D. Add a setting for the theme to the profile section of the Web.config file of the application. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. Retrieve the required theme name each time the user visits a page. Correct Answer: D

63 /Reference: QUESTION 101 When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase. What are three possible reasons that could cause this increase? (Each correct answer presents a complete solution. Choose three.) A. Restart of the Microsoft IIS 6.0 host. B. Restart of the Microsoft Windows Server 2003 that hosts the Web application. C. Addition of a new assembly in the Bin directory of the application. D. Addition of a code segment that requires recompilation to the ASP.NET Web application. E. Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application. F. Modification to the Web.config file in the system.web section for debugging the application. Correct Answer: CDE /Reference: QUESTION 102 The application has a Web form file named MovieReviews.aspx. The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID. The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for reference only.) 01 <asp:detailsview ID="DetailsView1" runat="server" 02 DataSourceID="LinqDataSource1" /> 05 <Fields> 06 <asp:boundfield DataField="MovieID" HeaderText="MovieID" 07 InsertVisible="False" 08 ReadOnly="True" SortExpression="MovieID" /> 09 <asp:boundfield DataField="Title" HeaderText="Title" 10 SortExpression="Title" /> 11 <asp:boundfield DataField="Theater" HeaderText="Theater" 12 SortExpression="Theater" /> 13 <asp:commandfield ShowDeleteButton="false" 14 ShowEditButton="True" ShowInsertButton="True" /> 15 </Fields> 16 </asp:detailsview>

64 You need to ensure that the users can insert and update content in the DetailsView1 control. You also need to prevent duplication of the link button controls for the Edit and New operations. Which code segment should you insert at line 03? A. AllowPaging="false"AutoGenerateRows="false" B. AllowPaging="true"AutoGenerateRows="false"DataKeyNames="MovieID" C. AllowPaging="true"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false" D. AllowPaging="false"AutoGenerateDeleteButton="false"AutoGenerateEditButton="true" AutoGenerateInsertButton="true"AutoGenerateRows="false"DataKeyNames="MovieID" Correct Answer: B /Reference: QUESTION 103 The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment. You need to configure SessionState for the application. Which code fragment should you use? A. <sessionstate mode="inproc" cookieless="usecookies" /> B. <sessionstate mode="inproc" cookieless="usedeviceprofile" /> C. <sessionstate mode="sqlserver" cookieless="false" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> D. <sessionstate mode="sqlserver" cookieless="useuri" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> Correct Answer: C /Reference: QUESTION 104 You create a Web form that contains the following code fragment. <asp:textbox runat="server" ID="txtSearch" /> <asp:button runat="server" ID="btnSearch" Text="Search" OnClick="btnSearch_Click" /> <asp:gridview runat="server" ID="gridCities" /> You write the following code segment in the code-behind file. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 DataSet objds = new DataSet();

65 04 SqlDataAdapter objda = new SqlDataAdapter(objCmd); 05 objda.fill(objds); 06 gridcities.datasource = objds; 07 gridcities.databind(); 08 Session["ds"] = objds; protected void btnsearch_click(object sender, EventArgs e) 11 { You need to ensure that when the btnsearch Button control is clicked, the records in the gridcities GridView control are filtered by using the value of the txtsearch TextBox. Which code segment you should insert at line 12? A. DataSet ds = gridcities.datasource as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); B. DataSet ds = Session["ds"] as DataSet; DataView dv = ds.tables[0].defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); C. DataTable dt = Session["ds"] as DataTable; DataView dv = dt.defaultview; dv.rowfilter = "CityName LIKE '" + txtsearch.text + "%'"; gridcities.datasource = dv; gridcities.databind(); D. DataSet ds = Session["ds"] as DataSet; DataTable dt = ds.tables[0]; DataRow[] rows = dt.select("cityname LIKE '" + txtsearch.text + "%'"); gridcities.datasource = rows; gridcities.databind(); Correct Answer: B /Reference: QUESTION 105 The application consumes an ASMX Web service. The Web service is hosted at the following URL. You need to ensure that the client computers can communicate with the service as part of the <system.servicemodel> configuration. Which code fragment should you use? A. <client> <endpointaddress=" binding="wshttpbinding" /> </client> B. <client> <endpoint address=" binding="basichttpbinding" /> </client> C. <client> <endpoint address=" binding="ws2007httpbinding" />

66 </client> D. <client> <endpoint address=" binding="wsdualhttpbinding" /> </client> Correct Answer: B /Reference: QUESTION 106 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. he application contains the following device filter element in the Web.config file. <filter name="ishtml" compare="preferredrenderingtype" argument="html32" /> The application contains a Web page that has the following image control. (Line numbers are included for reference only.) 01 <mobile:image ID="imgCtrl" Runat="server"> </mobile:image> You need to ensure that the following conditions are met: - The imgctrl Image control displays the highres.jpg file if the Web browser supports html. - The imgctrl Image control displays lowres.gif if the Web browser does not support html. Which DeviceSpecific element should you insert at line 02? A. <DeviceSpecific> <Choice Filter="isHtml" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /> </DeviceSpecific> B. <DeviceSpecific> <Choice Filter="isHtml" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="isHtml" Argument="true" ImageUrl="lowRes.gif" /> </DeviceSpecific> C. <DeviceSpecific> <Choice Filter="PreferredRenderingType" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /> </DeviceSpecific> D. <DeviceSpecific> <Choice Filter="PreferredRenderingType" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="PreferredRenderingType" Argument="true" ImageUrl="lowRes.gif" /> </DeviceSpecific> Correct Answer: A /Reference: QUESTION 107

67 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a login Web form by using the following code fragment. <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:textbox runat="server" ID="txtUser" Width="200px" /> <asp:textbox runat="server" ID="txtPassword" Width="200px" /> <asp:button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnlogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the client-side script. You also add the following client-script code fragment in the Web form. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function login() { 03 var username = $get('txtuser').value; 04 var password = $get('txtpassword').value; // authentication logic function onlogincompleted(validcredentials, usercontext, 09 methodname) 10 { 11 // notify user on authentication result function onloginfailed(error, usercontext, methodname) 15 { 16 // notify user on authentication exception </script> The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file. You need to ensure that the following workflow is maintained: - On successful authentication, the onlogincompleted client-script function is called to notify the user. - On failure of authentication, the onloginfailed client-script function is called to display an error message. Which code segment should you insert at line 06? A. var auth = Sys.Services.AuthenticationService; auth.login(username, password, false, null, null,onlogincompleted, onloginfailed, null); B. var auth = Sys.Services.AuthenticationService; auth.set_defaultfailedcallback(onloginfailed);var validcredentials = auth.login(username, password, false, null, null, null, null, null);if (validcredentials)onlogincompleted(true, null, null);elseonlogincompleted(false, null, null); C. var auth = Sys.Services.AuthenticationService;auth.set_defaultLoginCompletedCallback(onLoginCo mpleted);try { auth.login(username, password, false, null, null, null, null, null); catch (err) { onloginfailed(err, null, null); D. var auth = Sys.Services.AuthenticationService;try { var validcredentials = auth.login(username, password, false, null, null, null, null, null); if

68 (validcredentials) onlogincompleted(true, null, null); else onlogincompleted(false, null, null);catch (err) { onloginfailed(err, null, null); Correct Answer: A /Reference: QUESTION 108 You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.) 01 string strquery = "select * from Products;" 02 + "select * from Categories"; 03 SqlCommand cmd = new SqlCommand(strQuery, cnn); 04 cnn.open(); 05 SqlDataReader rdr = cmd.executereader(); rdr.close(); 08 cnn.close(); You need to ensure that the gvproducts and gvcategories GridView controls display the data that is contained in the following two database tables: The Products database table The Categories database table Which code segment should you insert at line 06? A. gvproducts.datasource = rdr;gvproducts.databind();gvcategories.datasource = rdr;gvcategories.databind(); B. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); C. gvproducts.datasource = rdr;rdr.nextresult();gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); D. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();rdr.nextresult();gvcategories.databind(); Correct Answer: D /Reference: QUESTION 109 The application consumes an ASMX Web service. The Web service is hosted at the following URL. You need to ensure that the client computers can communicate with the service as part of the <system.servicemodel> configuration.

69 Which code fragment should you use? A. <client> <endpointaddress=" binding="wshttpbinding" /> </client> B. <client> <endpoint address=" binding="basichttpbinding" /> </client> C. <client> <endpoint address=" binding="ws2007httpbinding" /> </client> D. <client> <endpoint address=" binding="wsdualhttpbinding" /> </client> Correct Answer: B /Reference: QUESTION 110 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You write the following code fragment. (Line numbers are included for reference only.) 01 <asp:updatepanel ID="upnData" runat="server" 02 ChildrenAsTriggers="false" UpdateMode="Conditional"> 03 <Triggers> </Triggers> 06 <ContentTemplate> 07 <!-- more content here --> 08 <asp:linkbutton ID="lbkLoad" runat="server" Text="Load" 09 onclick="lbkload_click" /> 10 <asp:button ID="btnSubmit" runat="server" Text="Submit" 11 Width="150px" onclick="btnsubmit_click" /> 12 </ContentTemplate> 13 </asp:updatepanel> 14 <asp:button ID="btnUpdate" runat="server" Text="Update" 15 Width="150px" onclick="btnupdate_click" /> You need to ensure that the requirements shown in the following table are met.

ACCURATE STUDY GUIDES, HIGH PASSING RATE! Question & Answer. Dump Step. provides update free of charge in one year!

ACCURATE STUDY GUIDES, HIGH PASSING RATE! Question & Answer. Dump Step. provides update free of charge in one year! DUMP STEP Question & Answer ACCURATE STUDY GUIDES, HIGH PASSING RATE! Dump Step provides update free of charge in one year! http://www.dumpstep.com Exam : 70-567 Title : Transition your MCPD Web Developer

More information

70-562CSHARP. TS:MS.NET Framework 3.5, ASP.NET Application Development. Exam.

70-562CSHARP. TS:MS.NET Framework 3.5, ASP.NET Application Development. Exam. Microsoft 70-562CSHARP TS:MS.NET Framework 3.5, ASP.NET Application Development Exam TYPE: DEMO http://www.examskey.com/70-562csharp.html Examskey Microsoft70-562CSHARP exam demo product is here for you

More information

KillTest. 半年免费更新服务

KillTest.   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 70-562 Title : TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Version : Demo 1 / 14 1.You create a Microsoft ASP.NET application

More information

TS: Microsoft.NET Framework 3.5, ASP.NET Application Development

TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Microsoft 70-562 TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Version: 34.0 Topic 1, C# QUESTION NO: 1 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework

More information

CSharp. Microsoft. UPGRADE- Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5

CSharp. Microsoft. UPGRADE- Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 Microsoft 70-567-CSharp UPGRADE- Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 Download Full Version : http://killexams.com/pass4sure/exam-detail/70-567-csharp A. S q ld a t a

More information

Microsoft Exam Pass4Sures v by Omar Sabha

Microsoft Exam Pass4Sures v by Omar Sabha Microsoft 70-562 Exam Pass4Sures v14.25 02-01-2012 by Omar Sabha Number: 070-562 Passing Score: 700 Time Limit: 120 min File Version: 14.25 http://www.gratisexam.com/ Microsoft 70-562 TS: Microsoft.NET

More information

PrepKing. PrepKing

PrepKing. PrepKing PrepKing Number: 70-562 Passing Score: 700 Time Limit: 120 min File Version: 7.0 http://www.gratisexam.com/ PrepKing 70-562 Exam A QUESTION 1 You create a Microsoft ASP.NET application by using the Microsoft.NET

More information

Microsoft Exam Pass4Sures 127q by naruto86

Microsoft Exam Pass4Sures 127q by naruto86 Microsoft 70-562 Exam Pass4Sures 127q 03-29-2012 by naruto86 Number: 070-562 Passing Score: 700 Time Limit: 120 min File Version: 1 http://www.gratisexam.com/ Microsoft 70-562 TS: Microsoft.NET Framework

More information

Exam Name: PRO: Designing and Developing ASP.NET. Applications Using the Microsoft.NET Framework 3.5

Exam Name: PRO: Designing and Developing ASP.NET. Applications Using the Microsoft.NET Framework 3.5 Vendor: Microsoft Exam Code: 70-564 Exam Name: PRO: Designing and Developing ASP.NET Applications Using the Microsoft.NET Framework 3.5 Version: DEMO 1: You are creating an ASP.NET application by using

More information

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 The Chapter Files...INTRO-3 Sample Database...INTRO-3

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

Microsoft.Braindump v by.Guna Sekaran.88q

Microsoft.Braindump v by.Guna Sekaran.88q Microsoft.Braindump.70-562.v2010-02-12.by.Guna Sekaran.88q Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 This dump is updated on 2010-02-18 Version: 2010-02-18 (70-562) By Guna

More information

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX KillTest Q&A Exam : Microsoft 70-564 Title : PRO: Designing and Developing ASP.NET Applications using Microsoft.NET Framework 3.5 Version : Demo 1 / 10 1. How many years of experience do you have in developing

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

Exam : Microsoft

Exam : Microsoft Exam : Microsoft 70-564 Title : PRO: Designing and Developing ASP.NET Applications using Microsoft.NET Framework 3.5 Update : Demo 1. How many years of experience do you have in developing web-based appplications

More information

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 Course Overview This instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

EXAM Web Development Fundamentals. Buy Full Product.

EXAM Web Development Fundamentals. Buy Full Product. Microsoft EXAM - 98-363 Web Development Fundamentals Buy Full Product http://www.examskey.com/98-363.html Examskey Microsoft 98-363 exam demo product is here for you to test the quality of the product.

More information

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Beginning ASP.NET. 4.5 in C# Matthew MacDonald Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big

More information

Microsoft TS: Microsoft.NET Framework 3.5, ASP.NET Application Development. Practice Test. Version 10.0

Microsoft TS: Microsoft.NET Framework 3.5, ASP.NET Application Development. Practice Test. Version 10.0 Microsoft 70-562 70-562 TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Practice Test Version 10.0 QUESTION NO: 1 Microsoft 70-562: Practice Exam You work as a Web Developer at CertKiller.com.

More information

Audience: Experienced application developers or architects responsible for Web applications in a Microsoft environment.

Audience: Experienced application developers or architects responsible for Web applications in a Microsoft environment. ASP.NET Using C# (VS 2010) This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.0 and C#. It includes an introduction to ASP.NET

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

Microsoft Exam Questions & Answers

Microsoft Exam Questions & Answers Microsoft 98-363 Exam Questions & Answers Number: 98-363 Passing Score: 800 Time Limit: 120 min File Version: 20.3 http://www.gratisexam.com/ Microsoft 98-363 Exam Questions & Answers Exam Name: Web Development

More information

Introduction... xxvii. Chapter 1: ASP.NET 4.5 Essentials... 1

Introduction... xxvii. Chapter 1: ASP.NET 4.5 Essentials... 1 Introduction... xxvii Chapter 1: ASP.NET 4.5 Essentials... 1 Section I Introduction to.net...2 Evolution of.net...2 Benefits of.net Framework...2 Overview of.net Framework 4.5...3 Common Language Runtime...4

More information

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Actual4Test.   Actual4test - actual test exam dumps-pass for IT exams Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : GSSP-NET Title : GIAC GIAC Secure Software Programmer - C#.NET Vendors : GIAC Version : DEMO Get Latest

More information

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Audience This course is intended for introductory-level Web developers who have knowledge of Hypertext Markup

More information

Developing Web Applications Using Microsoft Visual Studio 2008

Developing Web Applications Using Microsoft Visual Studio 2008 Course 2310C: Developing Web Applications Using Microsoft Visual Studio 2008 Length: 5 Day(s) Published: April 24, 2008 Language(s): English Audience(s): Developers Level: 100 Technology: Microsoft Visual

More information

ASP.NET Training Course Duration. 30 Working days, daily one and half hours. ASP.NET Training Course Overview

ASP.NET Training Course Duration. 30 Working days, daily one and half hours. ASP.NET Training Course Overview ASP.NET Training Course Duration 30 Working days, daily one and half hours ASP.NET Training Course Overview Introduction To Web Applications [Prerequisites] Types of Applications Web, Desktop & Mobile

More information

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page LESSON 2 2.1 Read and Write XML Data 2.2 Distinguish Between DataSet and DataReader Objects 2.3 Call a Service from a Web Page 2.4 Understand DataSource Controls 2.5 Bind Controls to Data by Using Data-Binding

More information

.NET FRAMEWORK. Visual C#.Net

.NET FRAMEWORK. Visual C#.Net .NET FRAMEWORK Intro to.net Platform for the.net Drawbacks of Current Trend Advantages/Disadvantages of Before.Net Features of.net.net Framework Net Framework BCL & CLR, CTS, MSIL, & Other Tools Security

More information

Vendor: Microsoft. Exam Code: Exam Name: Designing & Developing Web Apps Using MS.NET Frmwk 4. Version: Demo

Vendor: Microsoft. Exam Code: Exam Name: Designing & Developing Web Apps Using MS.NET Frmwk 4. Version: Demo Vendor: Microsoft Exam Code: 70-519 Exam Name: Designing & Developing Web Apps Using MS.NET Frmwk 4 Version: Demo Testlet 1 C# Adventure Works BACKGROUND Adventure Works is a retail operation with facilities

More information

The Processing Directives of a Page p. 91 The Page Class p. 99 Properties of the Page Class p. 100 Methods of the Page Class p.

The Processing Directives of a Page p. 91 The Page Class p. 99 Properties of the Page Class p. 100 Methods of the Page Class p. Acknowledgments p. xv Introduction p. xvii Building an ASP.NET Page The ASP.NET Programming Model p. 3 What's ASP.NET, Anyway? p. 4 Programming in the Age of Web Forms p. 5 Event-Driven Programming over

More information

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2008 Delivery Method Instructor-led (Classroom)

More information

10267 Introduction to Web Development with Microsoft Visual Studio 2010

10267 Introduction to Web Development with Microsoft Visual Studio 2010 10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides

More information

质量更高服务更好 半年免费升级服务.

质量更高服务更好 半年免费升级服务. IT 认证电子书 质量更高服务更好 半年免费升级服务 http://www.itrenzheng.com Exam : 70-515 Title : TS: Web Applications Development with Microsoft.NET Framework 4 Version : Demo 1 / 13 1.You are implementing an ASP.NET application

More information

Microsoft MTA Certification Exam

Microsoft MTA Certification Exam 98-363 Microsoft MTA Certification Exam Number: EnsurePass Passing Score: 800 Time Limit: 120 min File Version: 13.01 http://www.gratisexam.com/ Vendor: Microsoft Exam Code: 98-363 Exam Name: Web Development

More information

MCTS:.NET Framework 4, Web Applications

MCTS:.NET Framework 4, Web Applications MCTS:.NET Framework 4, Web Applications Course Description and Overview Overview SecureNinja s Web applications development with.net Framework 4 training and certification boot camp in Washington, DC will

More information

DE Introduction to Web Development with Microsoft Visual Studio 2010

DE Introduction to Web Development with Microsoft Visual Studio 2010 DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)

More information

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course Module 1: Overview of the Microsoft.NET Framework This module introduces the conceptual framework of the.net Framework and ASP.NET. Introduction to the.net Framework Overview of ASP.NET Overview of the

More information

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing

More information

Introduction to Controls Introduction

Introduction to Controls Introduction page 1 Meet the expert: Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft

More information

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Developing Web s Using Microsoft Visual Studio 2008 SP1 Introduction This five day instructor led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2008

More information

Number: Passing Score: 800 Time Limit: 120 min File Version: 1.0. Demo

Number: Passing Score: 800 Time Limit: 120 min File Version: 1.0. Demo 70-515 Number: 70-515 Passing Score: 800 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ Demo Exam A QUESTION 1 You are creating an ASP.NET Web site. The site has a master page named Custom.master.

More information

Working with Data in ASP.NET 2.0 :: Handling BLL and DAL Level Exceptions Introduction

Working with Data in ASP.NET 2.0 :: Handling BLL and DAL Level Exceptions Introduction 1 of 9 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks)

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks) Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks) Introduction of.net Framework CLR (Common Language Run

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

10264A CS: Developing Web Applications with Microsoft Visual Studio 2010

10264A CS: Developing Web Applications with Microsoft Visual Studio 2010 10264A CS: Developing Web Applications with Microsoft Visual Studio 2010 Course Number: 10264A Course Length: 5 Days Course Overview In this course, students will learn to develop advanced ASP.NET MVC

More information

Certified ASP.NET Programmer VS-1025

Certified ASP.NET Programmer VS-1025 VS-1025 Certified ASP.NET Programmer Certification Code VS-1025 Microsoft ASP. NET Programming Certification allows organizations to strategize their IT policy and support to easily connect disparate business

More information

ASP.NET Using C# (VS2017)

ASP.NET Using C# (VS2017) ASP.NET Using C# (VS 2017) This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET and Visual Studio 2017. It includes an introduction

More information

ASP.NET Using C# (VS2013)

ASP.NET Using C# (VS2013) ASP.NET Using C# (VS2013) This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.5.1 and Visual Studio 2013. It includes an introduction

More information

Unit-3 State Management in ASP.NET

Unit-3 State Management in ASP.NET STATE MANAGEMENT Web is Stateless. It means a new instance of the web page class is re-created each time the page is posted to the server. As we all know HTTP is a stateless protocol, it s can't holds

More information

CSharp. Microsoft. TS-MS.NET Framework 3.5 ASP.NET Application Development

CSharp. Microsoft. TS-MS.NET Framework 3.5 ASP.NET Application Development Microsoft 70-562-CSharp TS-MS.NET Framework 3.5 ASP.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-562-csharp QUESTION: 93 a Microsoft ASP.NET Web application.there

More information

Pro ASP.NET 4 in C# 2010

Pro ASP.NET 4 in C# 2010 Pro ASP.NET 4 in C# 2010 ii n in Matthew MacDonald, Adam Freeman, and Mario Szpuszta Apress Contents Contents at a Glance - About the Author About the Technical Reviewer Introduction... Hi xxxii xxxiii

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 10267 - Introduction to Web Development with Microsoft Visual Studio 2010 Duration: 5 days Course Price: $2,975 Software Assurance Eligible Course Description Course Overview This five-day instructor-led

More information

DEVELOPING WEB APPLICATIONS WITH MICROSOFT VISUAL STUDIO Course: 10264A; Duration: 5 Days; Instructor-led

DEVELOPING WEB APPLICATIONS WITH MICROSOFT VISUAL STUDIO Course: 10264A; Duration: 5 Days; Instructor-led CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: DEVELOPING WEB APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010 Course: 10264A; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN In this course, students

More information

Lab 5: ASP.NET 2.0 Profiles and Localization

Lab 5: ASP.NET 2.0 Profiles and Localization Lab 5: ASP.NET 2.0 Profiles and Localization Personalizing content for individual users and persisting per-user data has always been a non-trivial undertaking in Web apps, in part due to the stateless

More information

Developing Web Applications Using ASP.NET Duration:56 Hours

Developing Web Applications Using ASP.NET Duration:56 Hours Developing Web Applications Using ASP.NET Duration:56 Hours Chapter 1 Chapter 2 Rationale Introducing Web Development Server-Side Scripting Client-Side Scripting Exploring ASP.NET ASP.NET in the.net Framework

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing

More information

Q&As. Designing & Developing Web Apps Using MS.NET Frmwk 4. Pass Microsoft Exam with 100% Guarantee

Q&As. Designing & Developing Web Apps Using MS.NET Frmwk 4. Pass Microsoft Exam with 100% Guarantee 70-519 Q&As Designing & Developing Web Apps Using MS.NET Frmwk 4 Pass Microsoft 70-519 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: 100% Passing Guarantee 100%

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web

More information

DOT NET COURSE BROCHURE

DOT NET COURSE BROCHURE Page 1 1Pointer Technology Chacko Towers,Anna nagar Main Road, Anna Nager(Annai Insititute 2nd Floor) Pondicherry-05 Mobile :+91-9600444787,9487662326 Website : http://www.1pointer.com/ Email : info@1pointer.com/onepointertechnology@gmail.com

More information

User Manual. Admin Report Kit for IIS 7 (ARKIIS)

User Manual. Admin Report Kit for IIS 7 (ARKIIS) User Manual Admin Report Kit for IIS 7 (ARKIIS) Table of Contents 1 Admin Report Kit for IIS 7... 1 1.1 About ARKIIS... 1 1.2 Who can Use ARKIIS?... 1 1.3 System requirements... 2 1.4 Technical Support...

More information

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS ABOUT THIS COURSE In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5 tools and technologies. The focus will be on coding activities that enhance the

More information

PRO: Designing and Developing Microsoft SharePoint 2010 Applications

PRO: Designing and Developing Microsoft SharePoint 2010 Applications PRO: Designing and Developing Microsoft SharePoint 2010 Applications Number: 70-576 Passing Score: 700 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ Exam A QUESTION 1 You are helping

More information

Microsoft Web Applications Development w/microsoft.net Framework 4. Download Full Version :

Microsoft Web Applications Development w/microsoft.net Framework 4. Download Full Version : Microsoft 70-515 Web Applications Development w/microsoft.net Framework 4 Download Full Version : https://killexams.com/pass4sure/exam-detail/70-515 QUESTION: 267 You are developing an ASP.NET MVC 2 application.

More information

ASP.NET Using Visual Basic

ASP.NET Using Visual Basic ASP.NET Using Visual Basic Student Guide Revision 4.0 Object Innovations Course 4240 ASP.NET Using Visual Basic Rev. 4.0 Student Guide Information in this document is subject to change without notice.

More information

ITdumpsFree. Get free valid exam dumps and pass your exam test with confidence

ITdumpsFree.  Get free valid exam dumps and pass your exam test with confidence ITdumpsFree http://www.itdumpsfree.com Get free valid exam dumps and pass your exam test with confidence Exam : 070-305 Title : Developing and Implementing Web Applications with Microsoft Visual Basic.NET

More information

Developing ASP.NET MVC 4 Web Applications

Developing ASP.NET MVC 4 Web Applications Developing ASP.NET MVC 4 Web Applications Course 20486B; 5 days, Instructor-led Course Description In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5

More information

Microsoft VB. MS.NET Framework 2.0-Web-based Client Development. Download Full Version :

Microsoft VB. MS.NET Framework 2.0-Web-based Client Development. Download Full Version : Microsoft 70-528-VB MS.NET Framework 2.0-Web-based Client Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-528-vb You are creating a Microsoft ASP.NET Web application that

More information

Handle Web Application Errors

Handle Web Application Errors Handle Web Application Errors Lesson Overview In this lesson, you will learn about: Hypertext Transfer Protocol (HTTP) error trapping Common HTTP errors HTTP Error Trapping Error handling in Web applications

More information

ASP.NET - CONFIGURATION

ASP.NET - CONFIGURATION ASP.NET - CONFIGURATION http://www.tutorialspoint.com/asp.net/asp.net_configuration.htm Copyright tutorialspoint.com The behavior of an ASP.NET application is affected by different settings in the configuration

More information

Apex TG India Pvt. Ltd.

Apex TG India Pvt. Ltd. (Core C# Programming Constructs) Introduction of.net Framework 4.5 FEATURES OF DOTNET 4.5 CLR,CLS,CTS, MSIL COMPILER WITH TYPES ASSEMBLY WITH TYPES Basic Concepts DECISION CONSTRUCTS LOOPING SWITCH OPERATOR

More information

20486: Developing ASP.NET MVC 4 Web Applications

20486: Developing ASP.NET MVC 4 Web Applications 20486: Developing ASP.NET MVC 4 Web Applications Length: 5 days Audience: Developers Level: 300 OVERVIEW In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework

More information

20486: Developing ASP.NET MVC 4 Web Applications (5 Days)

20486: Developing ASP.NET MVC 4 Web Applications (5 Days) www.peaklearningllc.com 20486: Developing ASP.NET MVC 4 Web Applications (5 Days) About this Course In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework

More information

Developing ASP.NET MVC 4 Web Applications

Developing ASP.NET MVC 4 Web Applications Developing ASP.NET MVC 4 Web Applications Duration: 5 Days Course Code: 20486B About this course In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5

More information

COWLEY COLLEGE & Area Vocational Technical School

COWLEY COLLEGE & Area Vocational Technical School COWLEY COLLEGE & Area Vocational Technical School COURSE PROCEDURE FOR ASP.NET PROGRAMMING CIS1865 3 Credit Hours Student Level: This course is open to students on the college level in either the Freshman

More information

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students

More information

Developing ASP.Net MVC 4 Web Application

Developing ASP.Net MVC 4 Web Application Developing ASP.Net MVC 4 Web Application About this Course In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5 tools and technologies. The focus will

More information

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 9 Web Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Explain the functions of the server and the client in Web programming Create a Web

More information

EVALUATION COPY. ASP.NET Using C# Student Guide Revision 4.7. Unauthorized Reproduction or Distribution Prohibited. Object Innovations Course 4140

EVALUATION COPY. ASP.NET Using C# Student Guide Revision 4.7. Unauthorized Reproduction or Distribution Prohibited. Object Innovations Course 4140 ASP.NET Using C# Student Guide Revision 4.7 Object Innovations Course 4140 ASP.NET Using C# Rev. 4.7 Student Guide Information in this document is subject to change without notice. Companies, names and

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

Developing ASP.NET MVC 5 Web Applications

Developing ASP.NET MVC 5 Web Applications Developing ASP.NET MVC 5 Web Applications Course 20486C; 5 days, Instructor-led Course Description In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework tools

More information

Vendor: GIAC. Exam Code: GSSP-.NET. Exam Name: GIAC GIAC Secure Software Programmer - C#.NET. Version: Demo

Vendor: GIAC. Exam Code: GSSP-.NET. Exam Name: GIAC GIAC Secure Software Programmer - C#.NET. Version: Demo Vendor: GIAC Exam Code: GSSP-.NET Exam Name: GIAC GIAC Secure Software Programmer - C#.NET Version: Demo QUESTION NO: 1 You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET

More information

Diploma in Microsoft.NET

Diploma in Microsoft.NET Course Duration For Microsoft.NET Training Course : 12 Weeks (Weekday Batches) Objective For Microsoft.NET Training Course : To Become a.net Programming Professional To Enable Students to Improve Placeability

More information

Microsoft Web Development Fundamentals. Download Full Version :

Microsoft Web Development Fundamentals. Download Full Version : Microsoft 98-363 Web Development Fundamentals Download Full Version : https://killexams.com/pass4sure/exam-detail/98-363 Answer: B, C, E QUESTION: 193 You are creating a webpage in Visual Studio. The webpage

More information

DOT NET SYLLABUS FOR 6 MONTHS

DOT NET SYLLABUS FOR 6 MONTHS DOT NET SYLLABUS FOR 6 MONTHS INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate

More information

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 Course Curriculum COMPUTER SYSTEM ANALYST-.NET C# Introduction to.net Framework.NET Framework OverView CLR,CLS MSIL Assemblies NameSpaces.NET Languages

More information

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hrs Overview: This five-day

More information

20486C: Developing ASP.NET MVC 5 Web Applications

20486C: Developing ASP.NET MVC 5 Web Applications 20486C: Developing ASP.NET MVC 5 Web Course Details Course Code: Duration: Notes: 20486C 5 days This course syllabus should be used to determine whether the course is appropriate for the students, based

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE Exam Review Labs EXAM 98-363 Web Development Fundamentals TABLE OF CONTENTS Student Activity 1.1... 2 Student Activity 1.2... 3 Student

More information

Developing ASP.NET MVC 5 Web Applications. Course Outline

Developing ASP.NET MVC 5 Web Applications. Course Outline Developing ASP.NET MVC 5 Web Applications Course Outline Module 1: Exploring ASP.NET MVC 5 The goal of this module is to outline to the students the components of the Microsoft Web Technologies stack,

More information

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p.

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. Introduction p. xix.net, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. 5 Installing Internet Information Server

More information

HOMELESS INDIVIDUALS AND FAMILIES INFORMATION SYSTEM HIFIS 4.0 TECHNICAL ARCHITECTURE AND DEPLOYMENT REFERENCE

HOMELESS INDIVIDUALS AND FAMILIES INFORMATION SYSTEM HIFIS 4.0 TECHNICAL ARCHITECTURE AND DEPLOYMENT REFERENCE HOMELESS INDIVIDUALS AND FAMILIES INFORMATION SYSTEM HIFIS 4.0 TECHNICAL ARCHITECTURE AND DEPLOYMENT REFERENCE HIFIS Development Team May 16, 2014 Contents INTRODUCTION... 2 HIFIS 4 SYSTEM DESIGN... 3

More information

ASP.NET MVC Training

ASP.NET MVC Training TRELLISSOFT ASP.NET MVC Training About This Course: Audience(s): Developers Technology: Visual Studio Duration: 6 days (48 Hours) Language(s): English Overview In this course, students will learn to develop

More information

20486-Developing ASP.NET MVC 4 Web Applications

20486-Developing ASP.NET MVC 4 Web Applications Course Outline 20486-Developing ASP.NET MVC 4 Web Applications Duration: 5 days (30 hours) Target Audience: This course is intended for professional web developers who use Microsoft Visual Studio in an

More information

20486 Developing ASP.NET MVC 5 Web Applications

20486 Developing ASP.NET MVC 5 Web Applications Course Overview In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework tools and technologies. The focus will be on coding activities that enhance the performance

More information

Course 20486B: Developing ASP.NET MVC 4 Web Applications

Course 20486B: Developing ASP.NET MVC 4 Web Applications Course 20486B: Developing ASP.NET MVC 4 Web Applications Overview In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5 tools and technologies. The focus

More information