Microsoft.Braindump v by.Guna Sekaran.88q

Size: px
Start display at page:

Download "Microsoft.Braindump v by.Guna Sekaran.88q"

Transcription

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

2 Exam A QUESTION 1 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;

3 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; Answer: A QUESTION 2 You create a Web form and add the following code fragment. <asp:repeater ID="rptData" runat="server" DataSourceID="SqlDataSource1"ItemDataBound="rptData_ItemDataBound"> <ItemTemplate> <asp:label ID="lblQuantity" runat="server" Text='<%# Eval("QuantityOnHand") %>' /> </ItemTemplate> </asp:repeater> The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products. You write the following code segment to create the rptdata_itemdatabound event handler. (Line numbers are included for reference only.) 01 protected void rptdata_itemdatabound(object sender, 02 RepeaterItemEventArgs e) 03 { if(lbl!= null) 06 if(int.parse(lbl.text) < 10) 07 lbl.forecolor = Color.Red; 08 You need to retrieve a reference to the lblquantity Label control into a variable named lbl. Which code segment should you insert at line 04? A. Label lbl = Page.FindControl("lblQuantity") as Label; B. Label lbl = e.item.findcontrol("lblquantity") as Label; C. Label lbl = rptdata.findcontrol("lblquantity") as Label; D. Label lbl = e.item.parent.findcontrol("lblquantity") as Label; Answer: B QUESTION 3 Your application has a user control named UserCtrl.ascx. You write the following code fragment to create a Web page named Default.aspx.

4 Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <html>... <body> <form id="form1" runat="server"> <div> <asp:label ID="lblHeader" runat="server"></asp:label> <asp:label ID="lbFooter" runat="server"></asp:label> </div> </form> </body> </html> You need to dynamically add the UserCtrl.ascx control between the lblheader and lblfooter Label controls. A. Write the following code segment in the Init event of the Default.aspx Web page. Control ctrl = LoadControl("UserCtrl.ascx"); this.controls.addat(1, ctrl); B. Write the following code segment in the Init event of the Default.aspx Web page. Control ctrl = LoadControl("UserCtrl.ascx"); lblheader.controls.add(ctrl); C. Add a Literal control named Ltrl between the lblheader and lblfooter label controls. Write the following code segment in the Init event of the Default.aspx Web page. Control ctrl = LoadControl("UserCtrl.ascx"); D. Add a PlaceHolder control named PlHldr between the lblheader and lblfooter label controls. Write the following code segment in the Init event of the Default.aspx Web page. Control ctrl = LoadControl("UserCtrl.ascx"); PlHldr.Controls.Add(ctrl); Answer: D QUESTION 4 You create two user controls named UserCtrlA.ascx and UserCtrlB.ascx. The user controls postback to the server. You create a new Web page that has the following ASPX code. <asp:checkbox ID="Chk" runat="server" oncheckedchanged="chk_checkedchanged" AutoPostBack="true" /> <asp:placeholder ID="PlHolder" runat="server"></asp:placeholder> To dynamically create the user controls, you write the following code segment for the Web page. public void LoadControls() { if (ViewState["CtrlA"]!= null) { Control c; if ((bool)viewstate["ctrla"] == true) { c = LoadControl("UserCtrlA.ascx"); else { c = LoadControl("UserCtrlB.ascx"); c.id = "Ctrl"; PlHolder.Controls.Add(c); protected void Chk_CheckedChanged(object sender, EventArgs e)

5 { ViewState["CtrlA"] = Chk.Checked; PlHolder.Controls.Clear(); LoadControls(); You need to ensure that the user control that is displayed meets the following requirements: It is recreated during postback It retains its state. Which method should you add to the Web page? A. protected override object SaveViewState() { LoadControls(); return base.saveviewstate(); B. protected override void Render(HtmlTextWriter writer) { LoadControls(); base.render(writer); C. protected override void OnLoadComplete(EventArgs e) { base.onloadcomplete(e); LoadControls(); D. protected override void LoadViewState(object savedstate) { base.loadviewstate(savedstate); LoadControls(); Answer: D QUESTION 5 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. Template.InstantiateIn(this); this.controls.add(ofdata); B. Template.InstantiateIn(oFData); Controls.Add(oFData); C. this.templatecontrol = (TemplateControl)Template; -Can't Remember All-??? ofdata.templatecontrol = (TemplateControl)Template; Controls.Add(oFData); D. this.templatecontrol = (TemplateControl)oFData; -Can't Remember All-??? Controls.Add(oFData); Answer: B QUESTION 6

6 You create a composite custom control named MyControl. You need to add an instance of the OrderFormData control to the MyControl control. Which code segment should you use? A. protected override void CreateChildControls() { Controls.Clear(); OrderFormData ofdata = new OrderFormData("OrderForm"); Controls.Add(oFData); B. protected override void RenderContents(HtmlTextWriter writer) { OrderFormData ofdata = new OrderFormData("OrderForm"); ofdata.rendercontrol(writer); C. protected override void EnsureChildControls() { Controls.Clear(); OrderFormData ofdata = new OrderFormData("OrderForm"); ofdata.ensurechildcontrols(); if (!ChildControlsCreated) CreateChildControls(); D. protected override ControlCollection CreateControlCollection() { ControlCollection controls = new ControlCollection(this); OrderFormData ofdata = new OrderFormData("OrderForm"); controls.add(ofdata); return controls; Answer: A QUESTION 7 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? 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);

7 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); Answer: B QUESTION 8 You add a TextBox control named TextBox1. You write the following code segment for validation. protected void CustomValidator1_ServerValidate( object source, ServerValidateEventArgs args) { DateTime dt = String.IsNullOrEmpty(args.Value) DateTime.Now : Convert.ToDateTime(args.Value); args.isvalid = (DateTime.Now - dt).days < 10; You need to validate the value of TextBox1. Which code fragment should you add to the Web page? A. <asp:customvalidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ValidateEmptyText="True" onservervalidate="customvalidator1_servervalidate"> </asp:customvalidator> <asp:comparevalidator ID="CompareValidator1" runat="server" Type="Date" EnableClientScript="true" ControlToValidate="TextBox1" Operator="DataTypeCheck" > </asp:comparevalidator> B. <asp:customvalidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ValidateEmptyText="True" onservervalidate="customvalidator1_servervalidate"> </asp:customvalidator> <asp:requiredfieldvalidator ID="RequiredFieldValidator1" runat="server"controltovalidate="textbox1" InitialValue="<%= DateTime.Now; %>" > </asp:requiredfieldvalidator> C. <asp:customvalidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ValidateEmptyText="True" onservervalidate="customvalidator1_servervalidate"> </asp:customvalidator> <asp:comparevalidator ID="CompareValidator1" runat="server" Type="Date" EnableClientScript="true" ControlToValidate="TextBox1" ValueToCompare="<%= DateTime.Now; %>"> </asp:comparevalidator> D. <asp:customvalidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ValidateEmptyText="True" onservervalidate="customvalidator1_servervalidate"> </asp:customvalidator> <asp:requiredfieldvalidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" EnableClientScript="false" InitialValue="<%= DateTime.Now; %>" > </asp:requiredfieldvalidator> Answer: A

8 QUESTION 9 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. 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; D. protected override bool ControlPropertiesValid() { string value = GetControlValidationValue( this.attributes ["ControlToValidate"]); bool isvalid = Validate(value); this.propertiesvalid = isvalid; return true; Answer: C 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> <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> Answer: C

9 QUESTION 11 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); D. foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); E. foreach (ListItem li in ListBox1.Items) { if (li.selected) { ListBox1.Items.Remove(li); F. foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); Answer: CD QUESTION 12 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; Answer: A ActiveViewIndex is Zero base Index.

10 QUESTION 13 To add a Calendar server control to a Web page, you write the following code fragment. <asp:calendar SelectionMode="DayWeek" ID="Calendar1" runat="server"> </asp:calendar> You need to disable the non-week days in the Calendar control. A. Add the following code segment to the Calendar1 DayRender event handler. if (e.day.isweekend) { Day.IsSelectable = false; B. Add the following code segment to the Calendar1 DayRender event handler. if (e.day.isweekend) { if (Calendar1.SelectedDates.Contains(e.Day.Date)) Calendar1.SelectedDates.Remove(e.Day.Date); C. Add the following code segment to the Calendar1 SelectionChanged event handler. List<DateTime> list = new List<DateTime>(); foreach (DateTime st in (sender as Calendar).SelectedDates) { if (st.dayofweek == DayOfWeek.Saturday st.dayofweek == DayOfWeek.Sunday) { list.add(st); foreach (DateTime dt in list) { (sender as Calendar).SelectedDates.Remove(dt); D. Add the following code segment to the Calendar1 DataBinding event handler. List<DateTime> list = new List<DateTime>(); foreach (DateTime st in (sender as Calendar).SelectedDates) { if (st.dayofweek == DayOfWeek.Saturday st.dayofweek == DayOfWeek.Sunday) { list.add(st); foreach (DateTime dt in list) { (sender as Calendar).SelectedDates.Remove(dt); Answer: A QUESTION 14 You define the following class. public class Product { public decimal Price { get; set; Your application contains a Web form with a Label control named lblprice. You use a StringReader variable named xmlstream to access the following XML fragment. <Product>

11 <Price>35</Price> </Product> You need to display the price of the product from the XML fragment in the lblprice Label control. Which code segment should you use? A. DataTable dt = new DataTable(); dt.extendedproperties.add("type", "Product"); dt.readxml(xmlstream); lblprice.text = dt.rows[0]["price"].tostring(); B. XmlReader xr = XmlReader.Create(xmlStream); Product boughtproduct = xr.readcontentas(typeof(product), null) as Product; lblprice.text = boughtproduct.price.tostring(); C. XmlSerializer xs = new XmlSerializer(typeof(Product)); Product boughtproduct = xs.deserialize(xmlstream) as Product; lblprice.text = boughtproduct.price.tostring(); D. XmlDocument xdoc = new XmlDocument(); xdoc.load(xmlstream); Product boughtproduct = xdoc.oftype<product>().first(); lblprice.text = boughtproduct.price.tostring(); Answer: C QUESTION 15 You add a Web form that contains the following code fragment. <asp:gridview ID="gvProducts" runat="server" AllowSorting="True" DataSourceID="Products"> </asp: GridView> <asp:objectdatasource ID="Products" runat="server" SelectMethod="GetData" TypeName="DAL" /> </asp: ObjectDataSource> You write the following code segment for the GetData method of the DAL class. (Line numbers are included for reference only.) 01 public object GetData() { 02 SqlConnection cnn = new SqlConnection( ) 03 string strquery = "SELECT * FROM Products"; You need to ensure that the user can use the sorting functionality of the gvproducts GridView control. Which code segment should you insert at line 04? A. SqlCommand cmd = new SqlCommand(strQuery, cnn); cnn.open(); return cmd.executereader(); B. SqlCommand cmd = new SqlCommand(strQuery, cnn); cnn.open(); return cmd.executereader(commandbehavior.keyinfo); C. SqlDataAdapter da = new SqlDataAdapter(strQuery, cnn); DataSet ds = new DataSet(); da.fill(ds); return ds;

12 D. SqlDataAdapter da = new SqlDataAdapter(strQuery, cnn); DataSet ds = new DataSet(); da.fill(ds); ds.extendedproperties.add("sortable", true); return ds.tables[0].select(); Answer: C QUESTION 16 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(); SqlDataReader dr; prodcmd.commandtimeout = int.maxvalue; B. 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(); da.fill(ds); return ds; Answer: D

13 QUESTION 17 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 tabl The Categories database tabl 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(); Answer: D 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;

14 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(); Answer: B QUESTION 19 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("http: //win")) ; ICService channel = wcf.createchannel(); string s = channel.updatecustomerdetails("custid12"); B. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri(" UpdateCustomerDetails")); ICService channel = wcf.createchannel(); string s = channel.updatecustomerdetails("custid12");

15 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"); Answer: A QUESTION 20 You create a Microsoft Windows Communication Foundation (WCF) service that exposes the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IBlogService 03 { 04 [OperationContract] 05 [WebGet(ResponseFormat=WebMessageFormat.Xml)] 06 Rss20FeedFormatter GetBlog(); 07 You configure the WCF service to use the WebHttpBinding class, and to be exposed at the following URL: You need to store the result of the GetBlog operation in an XmlDocument variable named xmlblog in a Web form. Which code segment should you use? A. string url // XmlReader blogreader = XmlReader.Create(url); xmlblog.load(blogreader); B. string url // XmlReader blogreader = XmlReader.Create(url); xmlblog.load(blogreader); C. Uri bloguri = new Uri(@"http: // ChannelFactory<IBlogService> blogfactory = new ChannelFactory<IBlogService>(blogUri); IBlogService blogsrv = blogfactory.createchannel(); Rss20FeedFormatter feed = blogsrv.getblog(); xmlblog.loadxml(feed.tostring()); D. Uri bloguri = new Uri(@"http: // ChannelFactory<IBlogService> blogfactory = new ChannelFactory<IBlogService>(blogUri); IBlogService blogsrv = blogfactory.createchannel(); Rss20FeedFormatter feed = blogsrv.getblog(); xmlblog.loadxml(feed.feed.tostring()); Answer: A

16 QUESTION 21 You plan to add a custom parameter in the SqlDataSource control. You write the following code fragment. <asp:sqldatasource ID="SqlDataSource1" runat="server" InsertCommand="INSERT INTO [Employee] ([Field1], [Field2], [PostedDate]) <InsertParameters> <asp:parameter Name="Field1" /> <asp:parameter Name="Field2" /> <custom:dayparameter?name="posteddate" /> </InsertParameters> </asp:sqldatasource> You write the following code segment to create a custom parameter class. public class DayParameter : Parameter { You need to ensure that the custom parameter returns the current date and time. Which code segment should you add to the DayParameter class? A. protected DayParameter() : base("value", TypeCode.DateTime, DateTime.Now.ToString()) { B. protected override void LoadViewState(object savedstate) { ((StateBag)savedState).Add("Value", DateTime.Now); C. protected override object Evaluate(HttpContext context, Control control) { return DateTime.Now; D. protected override Parameter Clone() { Parameter pm = new DayParameter(); pm.defaultvalue = DateTime.Now; return pm; Answer: C QUESTION 22 The application has an ASPX page named ErrorPage.aspx. You plan to manage the unhandled application exceptions. You need to perform the following tasks: Display the ErrorPage.aspx page Write the exceptioninformation in the Event log file. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Add the following code fragment to the Web.config file. <customerrors mode="on" defaultredirect="errorpage.aspx" /> B. Add the following code fragment to the Web.config file. <customerrors mode="off" defaultredirect="errorpage.aspx" /> C. Add the following code segment to the Global.asax file. void Application_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); //Write Exception details to event log

17 D. Add the following code segment to the ErrorPage.aspx file. void Page_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); //Write Exception details to event log Server.ClearError(); Answer: AC It is better to use Try/Catch blocks around any code that is subject to errors instead of relying on a global error handler. An error handler that is defined in the Global.asax file will only catch errors that occur during processing of requests by the ASP.NET runtime. For example, it will catch the error if a user requests an.aspx file that does not occur in your application. However, it does not catch the error if a user requests a nonexistent.htm file. For non-asp.net errors, you can create a custom handler in Internet Information Services (IIS). The custom handler will also not be called for server-level errors. You cannot directly output error information for requests from the Global.asax file; you must transfer control to another page, typically a Web Forms page. When transferring control to another page, use Transfer method. This preserves the current context so that you can get error information from the GetLastError method. After handling an error, you must clear it by calling the ClearError method of the Server object (HttpServerUtility class). QUESTION 23 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>

18 Answer: C Debug Indicates whether the page should be compiled with debug symbols. true if the page should be compiled with debug symbols; otherwise, false. Because this setting affects performance, you should only set the attribute to true during development. ErrorPage Defines a target URL for redirection if an unhandled page exception occurs. QUESTION 24 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> </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"; Answer: B Use the RegisterDataItem method to send data from the server to the client during asynchronous postbacks,

19 regardless of whether the control receiving the data is inside an UpdatePanel control. Use RegisterAsyncPostBackControl for Registers a control as a trigger for asynchronous postbacks. QUESTION 25 You create a Web form in the application by using the following code fragment. (Line numbers are included for reference only.) 01 <script runat="server"> 02 protected void Button_Handler(object sender, EventArgs e) 03 { 04 // some long-processing operation </script> 07 <div> 08 <asp:scriptmanager ID="defaultScriptManager" 09 runat="server" /> <asp:updatepanel ID="defaultPanel" 12 UpdateMode="Conditional" runat="server"> 13 <ContentTemplate> 14 <!-- more content here --> 15 <asp:button ID="btnSubmit" runat="server" 16 Text="Submit" OnClick="Button_Handler" /> 17 </ContentTemplate> 18 </asp:updatepanel> 19 </div> You plan to create a client-side script code by using ASP.NET AJAX. You need to ensure that while a request is being processed, any subsequent Click events on the btnsubmit Button control are suppressed. Which code fragment should you insert at line 10? A. <script type="text/javascript" language="javascript"> var rm = Sys.WebForms.PageRequestManager.getInstance(); rm.add_beginrequest(checkpostback); function checkpostback(sender, args) { if (rm.get_isinasyncpostback() && args.get_postbackelement().id == 'btnsubmit') { rm.abortpostback(); alert('a previous request is still in progress.'); </script> B. <script type="text/javascript" language="javascript"> var rm = Sys.WebForms.PageRequestManager.getInstance(); rm.add_initializerequest(checkpostback); function checkpostback(sender, args) { if (rm.get_isinasyncpostback() && args.get_postbackelement().id == 'btnsubmit') { rm.abortpostback(); alert('a previous request is still in progress.'); </script>

20 C. <script type="text/javascript" language="javascript"> var rm = Sys.WebForms.PageRequestManager.getInstance(); rm.add_initializerequest(checkpostback); function checkpostback(sender, args) { if (rm.get_isinasyncpostback() && args.get_postbackelement().id == 'btnsubmit') { args.set_cancel(true); alert('a previous request is still in progress.'); </script> D. <script type="text/javascript" language="javascript"> var rm = Sys.WebForms.PageRequestManager.getInstance(); rm.add_beginrequest(checkpostback); function checkpostback(sender, args) { var request = args.get_request(); if (rm.get_isinasyncpostback() && args.get_postbackelement().id == 'btnsubmit') { request.completed(new Sys.CancelEventArgs()); alert('a previous request is still in progress.'); </script> Answer: C rm.abortpostback(); Cancel the postback that is currently running args.set_cancel(true); Cancel this postback QUESTION 26 You write the following code segment to create a JavaScript file named CalculatorScript.js. function divide(a, b) { if (b == 0) { var errormsg = Messages.DivideByZero; alert(errormsg); return null; return a/b; You embed the CalculatorScript.js file as a resource in a Class Library project. The namespace for this project is Calculator.Resources. The JavaScript function retrieves messages from a resource file named MessageResources.resx by using the JavaScript Messages object. You add an AJAX Web form in the ASP.NET application. You reference the Class Library in the application. You add an ASP.NET AJAX ScriptReference element to the AJAX Web form. You need to ensure that the JavaScript function can access the error messages that are defined in the resource file. Which code segment should you add in the AssemblyInfo.cs file? A. [assembly: ScriptResource ("CalculatorScript", "MessageResources", "Messages")] B. [assembly: ScriptResource ("CalculatorScript.js", "MessageResources.resx", "Messages")] C. [assembly: ScriptResource ("Calculator.Resources.CalculatorScript.js", "Calculator.Resources. MessageResources", "Messages")]

21 D. [assembly: ScriptResource ("Calculator.Resources.CalculatorScript", "Calculator.Resources. MessageResources.resx", "Messages")] Answer: C QUESTION 27 You create an AJAX-enabled Web form by using the following code fragment. <asp:scriptmanager ID="scrMgr" runat="server" /> <asp:updatepanel runat="server" ID="updFirstPanel" UpdateMode="Conditional"> <ContentTemplate> <asp:textbox runat="server" ID="txtInfo" /> <asp:button runat="server" ID="btnSubmit" Text="Submit" /> </ContentTemplate> </asp:updatepanel> <asp:updatepanel runat="server" ID="updSecondPanel" UpdateMode="Conditional"> <ContentTemplate>... </ContentTemplate> </asp:updatepanel> When the updfirstpanel UpdatePanel control is updated, a dynamic client script is registered. You write the following code segment in the code-behind file of the Web form. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 if(ispostback) 04 { 05 string generatedscript = ScriptGenerator.GenerateScript(); You need to ensure that the client-script code is registered only when an asynchronous postback is issued on the updfirstpanel UpdatePanel control. Which code segment should you insert at line 06? A. ClientScript.RegisterClientScriptBlock(typeof(TextBox), "txtinfo_script", generatedscript); B. ScriptManager.RegisterClientScriptBlock(this, typeof(page), "txtinfo_script", generatedscript, false); C. ClientScript.RegisterClientScriptBlock(typeof(Page), "txtinfo_script", generatedscript); D. ScriptManager.RegisterClientScriptBlock(txtInfo, typeof(textbox), "txtinfo_script", generatedscript, false); Answer: D QUESTION 28 The application contains the following code segment. public class CapabilityEvaluator { public static bool ChkScreenSize( System.Web.Mobile.MobileCapabilities cap, String arg) {

22 int screensize = cap.screencharacterswidth * cap.screencharactersheight; return screensize < int.parse(arg); You add the following device filter element to the Web.config file. <filter name="fltrscreensize" type="mywebapp.capabilityevaluator,mywebapp" method="chkscreensize" /> You need to write a code segment to verify whether the size of the device display is less than 80 characters. Which code segment should you use? A. MobileCapabilities currentmobile; currentmobile = Request.Browser as MobileCapabilities; if(currentmobile.hascapability("fltrscreensize","80")) { B. MobileCapabilities currentmobile; currentmobile = Request.Browser as MobileCapabilities; if(currentmobile.hascapability( "FltrScreenSize","").ToString()=="80") { C. MobileCapabilities currentmobile; currentmobile = Request.Browser as MobileCapabilities; if (currentmobile.hascapability( "CapabilityEvaluator.ChkScreenSize", "80")) { D. MobileCapabilities currentmobile; currentmobile = Request.Browser as MobileCapabilities; if (currentmobile.hascapability( "CapabilityEvaluator.ChkScreenSize", "").ToString()=="80") { Answer: A QUESTION 29 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> 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") {

23 D. public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) { ObjectListCommand cmd = e.commandsource as ObjectListCommand; if (cmd.name == "CmdDisplayDetails") { Answer: A QUESTION 30 All the content pages in the application use a single master page. The master page uses a static navigation menu to browse the site. You need to ensure that the content pages can optionally replace the static navigation menu with their own menu controls. A. Add the following code fragment to the master page <asp:placeholder ID="MenuPlaceHolder" runat="server"> <div id="menu"> <!-- Menu code here --> </div> </asp:placeholder> Add the following code segment to the Page_Load event of the content page PlaceHolder placeholder = Page.Master.FindControl("MenuPlaceHolder") as PlaceHolder; Menu menucontrol = new Menu(); placeholder.controls.add(menucontrol); B. Add the following code fragment to the master page <asp:contentplaceholder ID="MenuPlaceHolder" runat="server"> <!-- Menu code here --> </asp:contentplaceholder> Add the following code fragment to the content page <asp:content ContentPlaceHolderID="MenuPlaceHolder"> <asp:menu ID="menuControl" runat="server"> </ asp: menu </ asp:content> C. Add the following code fragment to the master page <asp:contentplaceholder ID="MenuPlaceHolder" runat="server"> <!-- Menu code here --> </asp:contentplaceholder> Add the following code segment to the Page_Load event of the content page ContentPlaceHolder placeholder = Page.Master.FindControl("MenuPlaceHolder") as ContentPlaceHolder; Menu menucontrol = new Menu(); placeholder.controls.add(menucontrol); D. Add the following code fragment to the master page <asp:placeholder ID="MenuPlaceHolder" runat="server"> <!-- Menu code here --> </asp:contentplaceholder> Add the following code fragment to the content page <asp:content PlaceHolderID="MenuPlaceHolder"> <asp:menu ID="menuControl" runat="server"> </ asp: menu </asp:content> Answer: B QUESTION 31 The application allows users to post comments to a page that can be viewed by other users. You add a SqlDataSource control named SqlDS 1. You write the following code segment. (Line numbers are included for reference only.) 01 private void SaveComment() 02 { 03 string ipaddr;

24 04 05 SqlDS1.InsertParameters["IPAddress"].DefaultValue = ipaddr; SqlDS1.Insert(); 08 You need to ensure that the IP Address of each user who posts a comment is captured along with the user's comment. Which code segment should you insert at line 04? A. ipaddr = Server["REMOTE_ADDR"].ToString(); B. ipaddr = Session["REMOTE_ADDR"].ToString(); C. ipaddr = Application["REMOTE_ADDR"].ToString(); D. ipaddr = Request.ServerVariables["REMOTE_ADDR"].ToString(); Answer: D QUESTION 32 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"); Answer: C QUESTION 33 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?

25 A. Page.RegisterRequiresPostBack(this); B. Page.RegisterRequiresControlState(this); C. Page.UnregisterRequiresControlState(this); D. Page.RegisterStartupScript("SharedControl","server"); Answer: B QUESTION 34 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"); 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); Answer: B HttpCacheability NoCache Sets the Cache-Control: no-cache header. Without a field name, the directive applies to the entire request and a shared (proxy server) cache must force a successful revalidation with the origin Web server

26 before satisfying the request. With a field name, the directive applies only to the named field; the rest of the response may be supplied from a shared cache. Private Default value. Sets Cache-Control: private to specify that the response is cacheable only on the client and not by shared (proxy server) caches. Server Specifies that the response is cached only at the origin server. Similar to the NoCache option. Clients receive a Cache-Control: no-cache directive but the document is cached on the origin server. Equivalent to ServerAndNoCache. ServerAndNoCache Applies the settings of both Server and NoCache to indicate that the content is cached at the server but all others are explicitly denied the ability to cache the response. Public Sets Cache-Control: public to specify that the response is cacheable by clients and shared (proxy) caches. ServerAndPrivate Indicates that the response is cached at the server and at the client but nowhere else. Proxy servers are not allowed to cache the response. QUESTION 35 You create a page that contains the following control. <asp:calendar EnableViewState="false"ID="calBegin" runat="server" /> You write the following code segment in the code-behind file for the page. void LoadDate(object sender, EventArgs e) { if (IsPostBack) { calbegin.selecteddate = (DateTime)ViewState["date"]; void SaveDate(object sender, EventArgs e) { ViewState["date"] = calbegin.selecteddate; You need to ensure that the calbegin Calendar control maintains the selected date. Which code segment should you insert in the constructor of the page? A. this.load += new EventHandler(LoadDate); this.unload += new EventHandler(SaveDate); B. this.init += new EventHandler(LoadDate); this.unload += new EventHandler(SaveDate); C. this.init += new EventHandler(LoadDate); this.prerender += new EventHandler(SaveDate); D. this.load += new EventHandler(LoadDate); this.prerender += new EventHandler(SaveDate); Answer: D QUESTION 36 You create a page that contains the following code fragment. <asp:listbox ID="lstLanguages"AutoPostBack="true" runat="server" /> 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?

27 A. this.init += new EventHandler(BindData); B. this.prerender += new EventHandler(BindData); C. lstlanguages.prerender += new EventHandler(BindData); D. lstlanguages.selectedindexchanged += new EventHandler(BindData); Answer: A QUESTION 37 The application runs on Microsoft IIS 6.0. You create a page named oldpage.aspx. You need to ensure that the following requirements are met when a user attempts to access the page: The browser diplays the URL of the oldpage.aspx page. The browser displays the page named newpage.aspx Which code segment should you use? A. Server.Transfer("newPage.aspx"); B. Response.Redirect("newPage.aspx"); C. if (Request.Url.UserEscaped) { Server.TransferRequest("newPage.aspx"); else { Response.Redirect("newPage.aspx", true); D. if (Request.Url.UserEscaped) { Response.RedirectLocation = "oldpage.aspx"; Response.Redirect ("newpage.aspx", true); else { Response.Redirect("newPage.aspx"); Answer: A QUESTION 38 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; Answer: D QUESTION 39 You write the following code segment to create a class named MultimediaDownloader that implements the IHttpHandler interface.

28 namespace Contoso.Web.UI { public class MultimediaDownloader : IHttpHandler {... The MultimediaDownloader class performs the following tasks: It returns the content of the multimedia files from the Web server It processes requests for the files that have the.media file extension The.media file extension is mapped to the aspnet_isapi.dll file in Microsoft IIS 6.0. You need to configure the MultimediaDownloader class in the Web.config file of the application. Which code fragment should you use? A. <httphandlers> <add verb="*.media" path="*" validate="false" type="contoso.web.ui. MultimediaDownloader" /> </httphandlers> B. <httphandlers> <add verb="head" path="*.media" validate="true" type="contoso.web.ui. MultimediaDownloader" /> </httphandlers> C. <httphandlers> <add verb="*" path="*.media" validate="false" type="contoso.web.ui. MultimediaDownloader" /> </httphandlers> D. <httphandlers> <add verb="get,post" path="*" validate="true" type="contoso.web.ui. MultimediaDownloader" /> </httphandlers> Answer: C QUESTION 40 You create a class that implements the IHttpHandler interface. You implement the ProcessRequest method by using the following code segment. (Line numbers are included for reference only.) 01 public void ProcessRequest(HttpContext ctx) { You need to ensure that the image named Alert.jpg is displayed in the browser when the handler is requested. Which code segment should you insert at line 02? A. StreamReader sr = new StreamReader(File.OpenRead(ctx.Server.MapPath("Alert.jpg"))); ctx.response.pics(sr.readtoend()); sr.close(); B. StreamReader sr = new StreamReader(File.OpenRead(ctx.Server.MapPath("Alert.jpg"))); ctx.response.pics("image/jpg"); ctx.response.transmitfile(sr.readtoend()); sr.close(); C. ctx.response.contenttype = "image/jpg"; FileStream fs = File.OpenRead(ctx.Server.MapPath("Alert.jpg")); int b; while ((b = fs.readbyte())!= -1) { ctx.response.outputstream.writebyte((byte)b); fs.close(); D. ctx.response.transmitfile("image/jpg"); FileStream fs = File.OpenRead(ctx.Server.MapPath("Alert.jpg")); int b; while ((b = fs.readbyte())!= -1) { ctx.response.outputstream.writebyte((byte)b); fs.close();

29 Answer: C QUESTION 41 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. 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. 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. Answer: D QUESTION 42 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. 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. Answer: C QUESTION 43 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You plan to set up authentication for the Web application. The application must support users from untrusted domains. You need to ensure that anonymous users cannot access the application. Which code fragment should you add to the Web.config file? A. <system.web> <authentication mode="forms"> <forms loginurl="login.aspx" /> </authentication> <authorization> <deny users="?" /> </authorization> </system.web> B. <system.web> <authentication mode="forms"> <forms loginurl="login.aspx" /> </authentication> <authorization> <deny users="*" /> </authorization> </system.web> C. <system.web> <authentication mode="windows"> </authentication> <authorization> <deny users="?" /> </ authorization> </system.web>

30 D. <system.web> <authentication mode="windows"> </authentication> <authorization> <deny users="*" /> </ authorization> </system.web> Answer: A QUESTION 44 You are maintaining a Microsoft ASP.NET Web Application that was created by using the Microsoft.NET Framework version 3.5. You obtain the latest version of the project from the source control repository. You discover that an assembly reference is missing when you attempt to compile the project on your computer. You need to compile the project on your computer. A. Add a reference path in the property pages of the project to the location of the missing assembly. B. Add a working directory in the property pages of the project to the location of the missing assembly. C. Change the output path in the property pages of the project to the location of the missing assembly. D. Delete the assembly reference. Add a reference to the missing assembly by browsing for it on your computer. Answer: A QUESTION 45 You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft.NET Framework version 3.5. The application runs on Microsoft IIS 6.0. You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the application. A. Edit the ASP.NET runtime version in IIS 6.0. B. Edit the System.Web section handler version number in the machine.config file. C. Add the requiredruntime configuration element to the Web.config file and set the version attribute to v3.5. D. Add the supportedruntime configuration element in the Web.config file and set the version attribute to v3.5. Answer: A QUESTION 46 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. 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="usecookies" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;"/>

31 D. <sessionstate mode="sqlserver"cookieless="useuri" sqlconnectionstring="integrated Security=SSPI; data source=mysqlserver;"/> Answer: C When you configure an AJAX-enabled ASP.NET Web site, use only the default value of UseCookies for the cookieless attribute. Settings that use cookies encoded in the URL are not supported by the ASP.NET AJAX client script libraries. QUESTION 47 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You deploy the application on a Microsoft IIS 6.0 Web server. The server runs on a worker process isolation mode, and it hosts the.net Framework version 1.1 Web applications. When you attempt to browse the application, the following error message is received: "It is not possible to run different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process." You need to ensure that the following requirements are met: All the applications run on the server All the applications remain in process isolation mode All the applications do not change their configuration. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Create a new application pool and add the new application to the pool. B. Configure the IIS 6.0 to run the WWW service in the IIS 5.0 isolation mode. C. Configure the new application to use the.net Framework version 2.0 in the IIS 6.0 Manager. D. Set autoconfig="false" on the <processmodel> property in the machine.config file. E. Disable the Recycle worker processes option in the Application Pool Properties dialog box. Answer: AC QUESTION 48 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" />

32 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" Answer: B QUESTION 49 You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement? A. the ITemplatable interface B. the INamingContainer interface C. the IRequiresSessionState interface D. the IPostBackDataHandler interface Answer: B QUESTION 50 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.

33 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" Answer: C QUESTION 51 You plan to submit text that contains HTML code to a page in the application. You need to ensure that the HTML code can be submitted successfully without affecting other applications that run on the Web server. A. Add the following attribute to directive. EnableEventValidation="true" B. Add the following attribute to directive. ValidateRequest="true" C. Set the following value in the Web.config file. <system.web> <pages validaterequest="false"/> </system.web> D. Set the following value in the Machine.config file. <system.web> <pages validaterequest="false"/> </system.web> Answer: C The request validation feature of ASP.NET 1.1 prevents the server from accepting content that contains unencoded HTML. You can disable request validation by setting the validaterequest attribute to false in Page directive or in the configuration section. Disable Request Validation on a Page To disable request validation on a page, you must set the validaterequest attribute of Page directive to false: <%@ Page validaterequest="false" %> Note When request validation is disabled, content is submitted to a page. The page developer must make sure that the content is correctly encoded or is correctly processed. Disable Request Validation for Your Application To disable request validation for your application, you must modify or create a Web.config file for your application and then set the validaterequest attribute of the <PAGES /> section to false: QUESTION 52 The application consumes an ASMX Web service. The Web service is hosted at the following URL.

34 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> <endpoint address="http: // binding="wshttpbinding" / </client> B. <client> <endpoint address="http: // binding="basichttpbinding" / </client> C. <client> <endpoint address="http: // binding="ws2007httpbinding" / </client> D. <client> <endpoint address="http: // binding="wsdualhttpbinding" / </client> Answer: B QUESTION 53 You create a file named movies.xml that contains the following code fragment. <Movies> <Movie ID="1" Name="Movie1" Year="2006"> <Desc Value="Movie desc"/> </Movie> <Movie ID="2" Name="Movie2" Year="2007"> <Desc Value="Movie desc"/> </Movie> <Movie ID="3" Name="Movie3" Year="2008"> <Desc Value="Movie desc"/> </Movie> </Movies> You add a Web form to the application. You write the following code segment in the Web form. (Line numbers are included for reference only.) 01 <form runat="server"> 02 <asp:xmldatasource 03 id="xmldatasource1" 04 runat="server" 05 datafile="movies.xml" /> </form> You need to implement the XmlDataSource control to display the XML data in a TreeView control. Which code segment should you insert at line 06? A. <asp:treeview ID="TreeView1" runat="server"datasourceid="xmldatasource1"> <DataBindings> <asp:treenodebinding DataMember="Movie" Text="Name" /> </DataBindings> </asp:treeview> B. <asp:treeview ID="TreeView1" runat="server" DataSourceID="XmlDataSource1"> <DataBindings> <asp:treenodebinding DataMember="Movies" Text="Desc" /> </DataBindings> </asp:treeview>

35 C. <asp:treeview ID="TreeView1" runat="server" DataSourceID="MovDataSource1"> <DataBindings> <asp:treenodebinding DataMember="Movie" Text="Name" /> </DataBindings> </asp:treeview> D. <asp:treeview ID="TreeView1" runat="server" DataSourceID="MovDataSource1"> <DataBindings> <asp:treenodebinding DataMember="Movies" Text="Desc" /> </DataBindings> </asp:treeview> Answer: A QUESTION 54 You create a FormView control to access the results of a query. The query contains the following fields: EmployeID FirstNam LastNam The user must be able to view and update the FirstName field. You need to define the control definition for the FirstName field in the FormView control. Which code fragment should you use? A. <asp:textbox ID="EditFirstNameTextBox" RunAt="Server" Text="<%# Bind("FirstName") %>" /> B. <asp:textbox ID="EditFirstNameTextBox" RunAt="Server" Text="<%# Eval("FirstName") %>" /> C. <asp:textbox ID="EditFirstNameTextBox" RunAt="Server" Text='<%# Bind("FirstName") %>' /> D. <asp:textbox ID="EditFirstNameTextBox" RunAt="Server" Text='<%# Eval("FirstName") %>' /> Answer: C QUESTION 55 The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control. (Line numbers are included for reference only.) 01 <tr> 02 <td align="right"><b>category:</b></td> 03 <td><asp:dropdownlist ID="InsertCategoryDropDownList" DataSourceID="CategoriesDataSource" 06 DataTextField="CategoryName" 07 DataValueField="CategoryID" 08 RunAt="Server" /> 09 </td> 10 </tr>

36 You need to ensure that the changes made to the CategoryID field can be written to the database. Which code fragment should you insert at line 04? A. SelectedValue='<%# Eval("CategoryID") %>' B. SelectedValue='<%# Bind("CategoryID") %>' C. SelectedValue='<%# Eval("CategoryName") %>' D. SelectedValue='<%# Bind("CategoryName") %>' Answer: B QUESTION 56 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. Answer: B QUESTION 57 The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm. You need to ensure that the following requirements are met: When the userrequests 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?

37 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> Answer: B QUESTION 58 You plan to deploy the application to a test server. You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application. Which code fragment should you add to the Web.config file? A. <compilation debug="true"> B. <compilation debug="false"> C. <compilation debug="true" batch="true"> D. <compilation debug="false" batch="false"> Answer: B ensure that during the initial request to the application, the code-behind files for the Web pages are compiled is Batch="True" (Batch default=true) You also need to optimize the performance of the application. is Debug="false" (Debug default=false) QUESTION 59 You host the application on a server named ContosoTest that runs Microsoft IIS 6.0. You set up remote debugging on the ContosoTest server. You need to debug the application remotely from another computer named ContosoDev. A. Attach Microsoft Visual Studio.NET to the w3wp.exe process. B. Attach Microsoft Visual Studio.NET to the inetinfo.exe process. C. Attach Microsoft Visual Studio.NET to the Msvsmon.exe process. D. Attach Microsoft Visual Studio.NET to the WebDev.WebServer.exe process. Answer: A

38 QUESTION 60 The application resides on a server named ContosoTest that runs Microsoft IIS 5.0. You use a computer named ContosoDev to log on to the Contoso.com domain with an account named ContosoUser. The ContosoTest and ContosoDev servers are members of the Contoso.com domain. You need to set up the appropriate permission for remote debugging. A. Set the Remote Debugging Monitor to use Windows Authentication. B. Add the ContosoUser account to the domain Administrators group. C. Add the ContosoUser account to the local Administrators group on the ContosoTest server. D. Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account. Answer: C QUESTION 61 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. Answer: D displays the details of the client-side object on the debugger console. Object use Sys.Debug.traceDump method. if Display Text use Sys.Debug.trace method. QUESTION 62 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.

39 E. Select the Display a notification about every script error check box. Answer: BE QUESTION 63 You plan to capture the timing and performance information of the application. You need to ensure that the information is accessible only when the user is logged on to the Web server and not on individual Web pages. What should you add to the Web.config file? A. <compilation debug="true" /> B. <compilation debug="false" urllinepragmas="true" /> C. <trace enabled="true" pageoutput="false" localonly="true" /> D. <trace enabled="true" writetodiagnosticstrace="true" pageoutput="true" localonly="true" /> Answer: C is accessible only when the user is logged on to the Web server is localonly="true" (default=true) not on individual Web pages. is pageoutput="false" (default=false) QUESTION 64 When you access the application in a Web browser, you receive the following error message: "Service Unavailable". You need to access the application successfully. A. Start Microsoft IIS 6.0. B. Start the Application pool. C. Set the.net Framework version. D. Add the Web.config file for the application. Answer: B QUESTION 65 The application is deployed on a Microsoft IIS 6.0 Web server by using the default ASP.NET version 2.0 application pool and Windows Authentication. The application contains functionality to upload files to a location on a different server. Users receive an access denied error message when they attempt to submit a file. You need to modify the Web.config file to resolve the error. Which code fragment should you use?

40 A. <identity impersonate="true" /> B. <anonymousidentification enabled="true" /> C. <rolemanager enabled="true"defaultprovider="aspnetwindowstokenroleprovider" /> D. <authorization> <allow users="*" /> </authorization> Answer: A QUESTION 66 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.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. Answer: CDF QUESTION 67 You plan to monitor the execution of the application at daily intervals. You need to modify the application configuration to enable WebEvent monitoring. A. Enable the Debugging in the Web site option in the ASP.NET configuration settings. Modify the Request Execution timeout to 10 seconds. Register the aspnet_perf.dll performance counter library by using the following command. B. regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v \aspnet_perf.dll Add the following code fragment to the <healthmonitoring> section of the Web.config file of the application. C. <profiles> <add name="default" mininstances="1" maxlimit="infinite" mininterval="00:00:10" custom="" /> </profiles> Add the following code fragment to the <system.web> section of the Web.config file of the application. D. <healthmonitoring enabled="true" heartbeatinterval="10"> <rules> <add name="heartbeats Default" eventname="heartbeat" provider="eventlogprovider" profile="critical"/> </rules> </healthmonitoring> Answer: D

41 QUESTION 68 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"/> Answer: B System.Web.Management.WebAuditEvent for Security-related Web Events System.Web.Management.WebErrorEvent for Web Events caused by problems with configuration or application code QUESTION 69 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">

42 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" /> 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" /> Answer: D QUESTION 70 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You add the following code fragment to an AJAX-enabled Web form. (Line numbers are included for reference only.) 01 <asp:scriptmanager ID="scrMgr" runat="server" /> 02 <asp:updatepanel ID="updPanel" runat="server" 03 UpdateMode="Conditional"> 04 <ContentTemplate> 05 <asp:label ID="lblTime" runat="server" /> 06 <asp:updatepanel ID="updInnerPanel" 07 runat="server" UpdateMode="Conditional">

43 08 <ContentTemplate> 09 <asp:timer ID="tmrTimer" runat="server" 10 Interval="1000" 11 OnTick="tmrTimer_Tick" /> 12 </ContentTemplate> </asp:updatepanel> 15 </ContentTemplate> </asp:updatepanel> The tmrtimer_tick event handler sets the Text property of the lbltime Label control to the current time of the server. You need to configure the appropriate UpdatePanel control to ensure that the lbltime Label Control is properly updated by the tmrtimer Timer control. A. Set the UpdateMode="Always" attribute to the updinnerpanel UpdatePanel control in line 07. B. Set the ChildrenAsTriggers="false" attribute to the updpanel UpdatePanel control in line 02. C. Add the following code fragment to line 13. <Triggers> <asp:postbacktrigger ControlID="tmrTimer" /> </Triggers> D. Add the following code fragment to line 16. <Triggers> <asp:asyncpostbacktrigger ControlID="tmrTimer" EventName="Tick" /> </Triggers> Answer: D QUESTION 71 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)); Answer: B

44 QUESTION 72 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 clien-script function named errorhandler. Update a Label control that has an ID named lbleror 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; Answer: A

45 QUESTION 73 You create a Web form by using ASP.NET AJAX. The Web form contains the following code fragment. (Line numbers are included for reference only.) 01 <script type="text/javascript"> Sys.Application.add_init(initComponents); function initcomponents() { </script> <asp:scriptmanager ID="ScriptManager1" 12 runat="server" /> 13 <asp:textbox runat="server" ID="TextBox1" /> You need to create and initialize a client behavior named MyCustomBehavior by using the initcomponents function. You also need to ensure that MyCustomBehavior is attached to the TextBox1 Textbox control. Which code segment should you insert at line 06? A. $create(mycustombehavior, null, null, null, 'TextBox1'); B. $create(mycustombehavior, null, null, null, $get('textbox1')); C. Sys.Component.create(MyCustomBehavior, 'TextBox1', null, null, null); D. Sys.Component.create(MyCustomBehavior, $get('textbox1'), null, null, null); Answer: B QUESTION 74 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 {

46 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 clien-script function is called to notify the user. On failure of authentication, the onloginfailed clien-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); else onlogincompleted(false, null, null); catch (err) { onloginfailed(err, null, null); Answer: A Sys.Services.AuthenticationService.login(userName, password, ispersistent, custominfo, redirecturl, logincompletedcallback, failedcallback, usercontext); username (required) The user name to authenticate. password The user's password. The default is null. ispersistent true if the issued authentication ticket should be persistent across browser sessions; otherwise, false. The default is false. redirecturl The URL to redirect the browser to on successful authentication. If null, no redirect occurs. The default is null. custominfo Reserved for future use. The default is null.

47 logincompletedcallback The function to call when the login has finished successfully. The default is null. failedcallback The function to call if the login fails. The default is null. usercontext User context information that you are passing to the callback functions. QUESTION 75 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. The 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 broser 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> Answer: A QUESTION 76 The application contains a mobile Web page. You add the following StyleSheet control to the Web page. <mobile:stylesheet id="mystylesheet" runat="server"> <mobile:style Name="StyleA" Font-Name="Arial" Font-Bold="True" Wrapping="NoWrap"> </mobile:style> </mobile:stylesheet> You need to add a Label control named MyLabel that uses the defined style in the MyStyleSheet StyleSheet control. Which markup should you use?

48 A. <mobile:label ID="MyLabel" Runat="server"StyleReference="MyStyleSheet:StyleA"> </mobile:label> B. <mobile:label ID="MyLabel" Runat="server" StyleReference="StyleA"> </mobile:label> C. <mobile:label ID="MyLabel" Runat="server"> <DeviceSpecific ID="DSpec" Runat="server"> <Choice Filter="MyStyleSheet" StyleReference="StyleA" /> </DeviceSpecific> </mobile:label> D. <mobile:label ID="MyLabel" Runat="server"> <DeviceSpecific ID="DSpec" Runat="server"> <Choice Argument="StyleA" StyleReference="MyStyleSheet" /> </DeviceSpecific> </mobile:label> Answer: A QUESTION 77 You modify an existing Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add a theme to the ASP.NET application. You need to apply the theme to override any settings of individual controls. A. In the Web.config file of the application, set the Theme attribute of the pages element to the name of the theme. B. In the Web.config file of the application, set the StyleSheetTheme attribute of the pages element to the name of the theme. C. Add a master page to the application. In directive, set the Theme attribute to the name of the theme. D. Add a master page to the application. In directive, set the StyleSheetTheme attribute to the name of the theme. Answer: A QUESTION 78 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. Use the Application object to store the name of the theme tha is selected by the user. B. Retrieve the required theme name from the Application object each time the user visits a page C. Use the Session object to store the name of the theme that is selected by the user. D. Retrieve the required theme name fro the Session object each time the user visits a page. E. Use the Response.Cookies collection to store the name of the theme that is selected by the user.

49 F. Use the Request. Cookies collection to identify the theme that was selected by the user each time the user visits a page. G. Add a setting for the theme to the profile section of the Web.config file of the application. H. Use the Profile.Theme string theme to store the name of the theme that is selected by the user. I. Retrieve the required theme name each time the user visits a page. Answer: GH QUESTION 79 The application must redirect the original URL to a different ASPX page. You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. A. Use the Server.Transfer method to transfer execution to the correct ASPX page. B. Use the Response.Redirect method to transfer execution to the correct ASPX page. C. Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page. D. Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page. Answer: C The RewritePath method redirects a request for a resource to another resource without changing the URL. If you need to reset the virtual path so that client resources resolve correctly, use the overload of this method that takes the rebaseclientpath parameter and set the parameter to false. QUESTION 80 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. Answer: B

50 QUESTION 81 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. The Web site uses C# as the programming language. You plan to add a code file written in Microsoft VB.NET to the application. This code segment will not be converted to C#. You add the following code fragment to the Web.config file of the application. <compilation debug="false"> <codesubdirectories> <add directoryname="vbcode"/> </codesubdirectories> </compilation> You need to ensure that the following requirements are met: The existing VB.NET file can be used in the Web application The file can be modified and compiled at run time A. Create a new folder named VBCode at the root of the application Place the VB.NET code file n this new folder. B. Create a new folder named VBCode inside the App_Code folder of the application Place the VB.NET code file in this new folder C. Create a new class library that uses VB.NET as the programming language Add the VB.NET code ile to the class library. Add a reference to the class library in the application D. Create a new Microsoft Windows Communication Foundation ( WCF) service project that uses VB.NET as the programming language. Expose the VB.NET code functionalitythrough the WCF service. Add a service reference to the WCF service project in the application Answer: B QUESTION 82 The application uses a set of general-purpose utility classes that implement business logic. These classes are modified frequently. You need to ensure that the application is recompiled automatically when a utility class is modified. A. Create the Web application by using a Microsoft Visual Studio ASP.NET Web site Add the utility classes to the App_Code subfolder of the Web application B. Create the Web aplication by using a Microsoft Visual Studio ASP.NET Web Application project. Add the utility classes to the App_Code subfolder of the Web application C. Create the Web application by using a Microsoft Visual Studio ASP.NET Web site Add the utilty classes to the root folder of the Web application. D. Create the Web application by using a Microsoft Visual Studio ASP.NET Web Application project Add the utility classes to the root folder of the Web application Answer: A QUESTION 83

51 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> Answer: A QUESTION 84 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?

52 A. Template.InstantiateIn(this); this.controls.add(ofdata); B. Template.InstantiateIn(oFData); Controls.Add(oFData); C. this.templatecontrol = (TemplateControl)Template; -Can't Remember All-??? ofdata.templatecontrol = (TemplateControl)Template; Controls.Add(oFData); D. this.templatecontrol = (TemplateControl)oFData; -Can't Remember All-??? Controls.Add(oFData); Answer: B QUESTION 85 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); D. foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); E. foreach (ListItem li in ListBox1.Items) { if (li.selected) { ListBox1.Items.Remove(li); F. foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); Answer: CD QUESTION 86 You are maintaining a Microsoft ASP.NET Web Application that was created by using the Microsoft.NET Framework version 3.5. You obtain the latest version of the project from the source control repository. You discover that an assembly reference is missing when you attempt to compile the project on your computer. You need to compile the project on your computer. A. Add a reference path in the property pages of the project to the location of the missing assembly. B. Add a working directory in the property pages of the project to the location of the missing assembly.

53 C. Change the output path in the property pages of the project to the location of the missing assembly. D. Delete the assembly reference. Add a reference to the missing assembly by browsing for it on your computer. Answer: A QUESTION 87 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" /> 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" /> Answer: D

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

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

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

CertifyMe. CertifyMe

CertifyMe. CertifyMe CertifyMe Number: 70-567 Passing Score: 700 Time Limit: 90 min File Version: 8.0 http://www.gratisexam.com/ CertifyMe 70-567 Exam A QUESTION 1 You add a Web page named HomePage.aspx in the application.

More information

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

dnrtv! featuring Peter Blum

dnrtv! featuring Peter Blum dnrtv! featuring Peter Blum Overview Hello, I am Peter Blum. My expertise is in how users try to use web controls for data entry and what challenges they face. Being a developer of third party controls,

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

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

质量更高服务更好 半年免费升级服务. 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

Exception/Error Handling in ASP.Net

Exception/Error Handling in ASP.Net Exception/Error Handling in ASP.Net Introduction Guys, this is not first time when something is written for exceptions and error handling in the web. There are enormous articles written earlier for this

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

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

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

ASP.NET Validation. Madhuri Sawant. madhuri sawant

ASP.NET Validation. Madhuri Sawant. madhuri sawant ASP.NET Validation Madhuri Sawant Validation o o o o o A validation control is a type of ASP.NET control that s used to validate input data. Use validation controls to test user input and produce error

More information

5. Explain Label control in detail with Example.

5. Explain Label control in detail with Example. 5. Explain Label control in detail with Example. Whenever you need to modify the text displayed in a page dynamically, you can use the Label control. Any string that you assign to the Label control's Text

More information

Unit-2 ASP.NET Server Controls

Unit-2 ASP.NET Server Controls INTRODUCTION TO HTML CONTROLS, SERVER CONTROLS AND VALIDATION CONTROLS There are three types of the controls: HTML Controls Web Server Controls Validation Controls HTML Controls HTML Forms are required

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

Web Services DELMIA Apriso 2017 Implementation Guide

Web Services DELMIA Apriso 2017 Implementation Guide Web Services DELMIA Apriso 2017 Implementation Guide 2016 Dassault Systèmes. Apriso, 3DEXPERIENCE, the Compass logo and the 3DS logo, CATIA, SOLIDWORKS, ENOVIA, DELMIA, SIMULIA, GEOVIA, EXALEAD, 3D VIA,

More information

Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default %> در این مقاله قصد داریم با استفاده از Ajax کاربر یک پیام را بدون الگین شدن و با استفاده از IP بتواند الیک و یا دیس الیک کند را در ASPآموزش دهیم. برای شروع یک بانک اطالعاتی به نام Test که حاوی دو جدول به

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

Postback. ASP.NET Event Model 55

Postback. ASP.NET Event Model 55 ASP.NET Event Model 55 Because event handling requires a round-trip to the server, ASP.NET offers a smaller set of events in comparison to a totally client-based event system. Events that occur very frequently,

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

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

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

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

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

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Employee Attendance System module using ASP.NET (C#)

Employee Attendance System module using ASP.NET (C#) Employee Attendance System module using ASP.NET (C#) Home.aspx DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

Working with Data in ASP.NET 2.0 :: Sorting Data in a DataList or Repeater Control Introduction

Working with Data in ASP.NET 2.0 :: Sorting Data in a DataList or Repeater Control Introduction 1 of 26 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

Online Activity: Debugging and Error Handling

Online Activity: Debugging and Error Handling Online Activity: Debugging and Error Handling In this activity, you are to carry a number of exercises that introduce you to the world of debugging and error handling in ASP.NET using C#. Copy the application

More information

BCA MCA VIVA TIPS & Question Answer. Wish you success!! Navneet Vishwas

BCA MCA VIVA TIPS & Question Answer. Wish you success!! Navneet Vishwas National Institute of Professional Studies and Research NiPSAR, A-132, NiPS Building, Katwaria Sarai Opp. Indian Bank, New Delhi-110016 www.nipsedu.co.in, Emai nipsgp@gmail.com, support@nipsedu.co.in M#

More information

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction 1 of 17 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

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

Let's explore these events by creating master-detail AJAX grid views that link Products to Suppliers in Northwind database.

Let's explore these events by creating master-detail AJAX grid views that link Products to Suppliers in Northwind database. 1 Data View Extender Events: selected and executed Data Aquarium Framework includes a collection of JavaScript components that are rendering user interface in a web browser and are interacting with the

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

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

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

CST141 ASP.NET Database Page 1

CST141 ASP.NET Database Page 1 CST141 ASP.NET Database Page 1 1 2 3 4 5 8 ASP.NET Database CST242 Database A database (the data) A computer filing system I.e. Payroll, personnel, order entry, billing, accounts receivable and payable,

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

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

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

.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

Working with Data in ASP.NET 2.0 :: Adding Validation Controls to the Editing and Inserting Interfaces Introduction

Working with Data in ASP.NET 2.0 :: Adding Validation Controls to the Editing and Inserting Interfaces Introduction 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. Working

More information

Table of Contents. Chapter 5. Working with the Page

Table of Contents. Chapter 5. Working with the Page Table of Contents... 1 Programming with Forms... 2 Dealing with Page Errors... 14 ASP.NET Tracing... 25 Page Personalization... 30 Conclusion... 44 Page 1 Return to Table of Contents Chapter 5 Working

More information

Careerarm.com. Question 1. Orders table OrderId int Checked Deptno int Checked Amount int Checked

Careerarm.com. Question 1. Orders table OrderId int Checked Deptno int Checked Amount int Checked Question 1 Orders table OrderId int Checked Deptno int Checked Amount int Checked sales table orderid int Checked salesmanid int Checked Get the highest earning salesman in each department. select salesmanid,

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

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

32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio

32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio 32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio 1 2 Conexiune - Oracle.ManagedDataAccess.Client... 3 using Oracle.ManagedDataAccess.Client;... public partial class

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

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

INTRODUCTION & IMPLEMENTATION OF ASP.NET

INTRODUCTION & IMPLEMENTATION OF ASP.NET INTRODUCTION & IMPLEMENTATION OF ASP.NET CONTENTS I. Introduction to ASP.NET 1. Difference between ASP and ASP.NET 2. Introduction to IIS 3. What is Web Application? Why is it used? II. Implementation

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

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

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

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

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

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

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.)

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.) 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 Language (IL) Just- In-

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

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

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

Getting Started with the Bullhorn SOAP API and C#/.NET

Getting Started with the Bullhorn SOAP API and C#/.NET Getting Started with the Bullhorn SOAP API and C#/.NET Introduction This tutorial is for developers who develop custom applications that use the Bullhorn SOAP API and C#. You develop a sample application

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

(IT. Validation Controls ASP.NET.

(IT. Validation Controls ASP.NET. (IT Validation Controls ASPNET Email-nabil299@gmailcom PostBack Client-Side PostBack (JScript ) Client-Side Server-Side Validation JScript ASPNET Validation controls ToolBox Validation tab Validation controls

More information

Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders:

Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders: Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders: StyleSheets App_Themes (ASP.NET folder, name the Theme1 folder Basic) App_Data

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

T his article is downloaded from

T his article is downloaded from Some of the performance tips v ery useful during dev elopment, production and testing 1) Set debug="false" during deployment of your application NEVER deploy your web application to production with debug

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

Validation Server Controls

Validation Server Controls Validation Server Controls Definition: Validation is a set of rules that you apply to the data you collect. A Validation server control is used to validate the data of an input control. If the data does

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

XML with.net: Introduction

XML with.net: Introduction XML with.net: Introduction Extensible Markup Language (XML) strores and transports data. If we use a XML file to store the data then we can do operations with the XML file directly without using the database.

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

Working with Data in ASP.NET 2.0 :: Paging Report Data in a DataList or Repeater Control Introduction

Working with Data in ASP.NET 2.0 :: Paging Report Data in a DataList or Repeater Control Introduction 1 of 16 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

Controls are also used for structural jobs, like validation, data access, security, creating master pages, data manipulation.

Controls are also used for structural jobs, like validation, data access, security, creating master pages, data manipulation. 1 Unit IV: Web Forms Controls Controls Controls are small building blocks of the graphical user interface, which includes text boxes, buttons, check boxes, list boxes, labels and numerous other tools,

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

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

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

ASP.NET Pearson Education, Inc. All rights reserved.

ASP.NET Pearson Education, Inc. All rights reserved. 1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development

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

ASP.NET Using C# Student Guide Revision 4.0. Object Innovations Course 4140

ASP.NET Using C# Student Guide Revision 4.0. Object Innovations Course 4140 ASP.NET Using C# Student Guide Revision 4.0 Object Innovations Course 4140 ASP.NET Using C# Rev. 4.0 Student Guide Information in this document is subject to change without notice. Companies, names and

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

Exam : Title. : Developing and Implementing Web Applications with Microsoft Visual Basic.NET

Exam : Title. : Developing and Implementing Web Applications with Microsoft Visual Basic.NET Exam : 070-305 Title : Developing and Implementing Web Applications with Microsoft Visual Basic.NET QUESTION 1 You create an ASP.NET application for Certkiller 's intranet. All employee on the intranet

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

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

Chapter 2 How to develop a one-page web application

Chapter 2 How to develop a one-page web application Chapter 2 How to develop a one-page web application Murach's ASP.NET 4.5/C#, C2 2013, Mike Murach & Associates, Inc. Slide 1 The aspx for a RequiredFieldValidator control

More information

ASP.NET: Hands-on Introduction

ASP.NET: Hands-on Introduction In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers

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

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

Datalogging and Monitoring

Datalogging and Monitoring Datalogging and Monitoring with Step by Step Examples Hans-Petter Halvorsen http://www.halvorsen.blog Content Different Apps for Data Logging and Data Monitoring will be presented Here you find lots of

More information

User Filter State. Chapter 11. Overview of User Filter State. The PDSAUserFilterState Class

User Filter State. Chapter 11. Overview of User Filter State. The PDSAUserFilterState Class Chapter 11 User Filter State When users visit a search page (or an add, edit and delete page with a set of search filters above the grid), each user will enter search criteria, drill down on a search result

More information

B. V. Patel Institute of Business Management, Computer and Information Technology

B. V. Patel Institute of Business Management, Computer and Information Technology B.C.A (5 th Semester) 030010501 Basics of Web Development using ASP.NET Question Bank Unit : 1 ASP.NET Answer the following questions in short:- 1. What is ASP.NET? 2. Which events are fired when page

More information

THE RESURGENCE OF WEBFORMS I M NOT DEAD YET! Philip Japikse MVP, MCSD.Net, MCDBA, CSM, CSP

THE RESURGENCE OF WEBFORMS I M NOT DEAD YET! Philip Japikse  MVP, MCSD.Net, MCDBA, CSM, CSP THE RESURGENCE OF WEBFORMS I M NOT DEAD YET! Philip Japikse (@skimedic) skimedic@outlook.com www.skimedic.com/blog MVP, MCSD.Net, MCDBA, CSM, CSP WHO AM I? Developer, Author, Teacher Microsoft MVP, ASPInsider,

More information

Hands-On Lab. Lab 02: Visual Studio 2010 SharePoint Tools. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab 02: Visual Studio 2010 SharePoint Tools. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab 02: Visual Studio 2010 SharePoint Tools Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING A SHAREPOINT 2010 PROJECT... 4 EXERCISE 2: ADDING A FEATURE

More information

Overview of ASP.NET and Web Forms

Overview of ASP.NET and Web Forms ASP.NET with Web Forms Objectives Learn about Web Forms Learn the Web controls that are built into Web Forms Build a Web Form Assumptions The following should be true for you to get the most out of this

More information