You are debugging an ASP.NET web page. The page includes the following method: [WebMethod] public string GetServerString() { … } The page also includes the following markup: <asp:ScriptManager ID="sm1" runat="server" /> The following JavaScript code is used to call the…

You are developing an ASP.NET web page. The page includes a DropDownList control. You need to call a client-side function when the user changes the value of the control. Which event should you handle? A. Click B. SelectedIndexChanged C. Change…

You are developing an ASP.NET AJAX extender control. The extender includes the following segment. You need to ensure that the extender can be user to extend only text boxes and that the targetID property can reference only buttons. What should…

You are adding new capabilities to an ASP.NET web site. The site currently connects to a Microsoft SQL Server database by using the credentials of the CONTOSOAppIdentity account, which has been granted access to only objects within the database. The…

You are developing an ASP.NET web application. The application includes the following Entity Data Model (EDM): You instantiate an ObjectContext for the EDM named context. You need to find the total number of addresses that are associated with customers that…

You are developing an ASP.NET web application that you will deploy to an Internet Information Services (IIS) 7.0 server. The application will run in Integrated pipeline mode. The application contains a phot gallery of images that are stored in a…

You are developing an ASP.NET web page. The page includes the following EntityDataSource control: <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=AdventureWorksEntities" DefaultContainerName="AdventureWorksEntities" EnableFlattening="False" EntitySetName="Products" /> The page must filter the data that is displayed in a grid on a query string parameter named…

You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control. Which code segment should you use? A. this.ContentSection.Controls.Add( this.FindControl(contentSection.ID + "asp:TextBox")); B.…

You are deloping an ASP.NET Dynamic Data Web application. The application uses entities from a global library named Entities. The Application_Start event contains the following code segment: You need to ensure that the application shows the Order and Customer entities…

You are developing an ASP.NET MVC2 application. You add an area named Admin to the application. Admin contains a controller class name to MainController. You create a view named Index outside the Admin area. You need to add a link…