<%@ Page Language="VB" CodeBehind="PersonalDetails.aspx.vb" AutoEventWireup="false" inherits="InsApp.PersonalDet"%> PersonalDetails.aspx had a TextBox control named MemberID in which the user can enter a Personal MemberID. The HTML code for this control is as follows: <asp:TextBox ID="MemberID" Columns="20" Runat="server"/> You need to implement a TextChanged event handler for MemberID. You want this event handler to retrieve information about a person by using an XML Web service that charges for each access. The page will then be redisplayed with additional information about the vehicle obtained from the XML Web service. You are implementing the TextChanged event handler. Which two courses of action should you take? (Each correct answer presents part of the solution. Choose two)
In the Page directive for PersonalDetails.aspx, ensure that the AutoEventWireup attributes is set to "true".
In the Page directive for PersonalDetails.aspx, ensure that the EnableViewState attribute is set to "true".
In the MemberID HTML element, ensure that the AutoPostback attribute is set to "false". Include code for the client-side onserverchange event to submit the Web Form for processing by theserver
In the MemberID HTML element, ensure that the AutoPostback attribute is set to "true". Include code in the TextChanged event handler to query the XML Web service
Create a Microsoft Visual Studio .NET Enterprise template
Create a sample HTML page
Create a sample ASP.NET Web form
Create a cascading style sheet
Useful resources, CSS Overview
A try block can have more than one catch blocks
Every try block must have a catch block
Every try block must have a finally block
All exception classes are to be derived from System.Exception
XYZ is creating an e-commerce site for PremiumBoutique. The site is distributed across multiple servers in a Web farm. Users will be able to navigate through the pages of the site and select products for purchase. XYZ wants to use a DataSet object to save their selections. Users will be able to view their selections at any time by clicking a Shopping Cart link. XYZ wants to ensure that each user's shopping cart DataSet object is saved between requests when the user is making purchases on the site.
How can this requirement be implement?
Create a StateBag object. Use the StateBag object to store the DataSet object in the page's ViewState property
Use the HttpSessionState object returned by the Session property of the page to store the DataSet object. Use the Web.config file to configure an out-of-process session route
Use the Cache object returned by the page's Cache property to store a DataSet object for each user. Use an HttpCachePolicy object to set a timeout period for the cached data
Use the Session_Start event to create an Application variable of type DataSet for each session. Store the DataSet object in the Application variable
Add a new component class to your ASP.NET project. Use HTML server controls to design the toolbar within the designer of the component class.
Create a new Web Control Library project. Create the toolbar within a Web custom control.
Add a new Web user control to your ASP.NET project. Create the toolbar within the Web user control.
Add a new Web Form to your ASP.NET project. Use HTML server controls to design the toolbar within the Web Form and save the Web Form with an ascx extension
Useful resources, ASP.NET User Controls
Use the Browser object's Cookies
As we do not need to send or receive anything from server, client side script is the best approach to interact with user’s activity.Useful resources, Client-Side Script
Your company, StoreIt Inc has stored the text of several journals in a Microsoft SQL Server 7.0 database. Each sentence is stored in a separate record so that the text can be retrieved with the finest granularity. Several of these works are many thousands of printed pages in length. You are building a Web application that will allow registered users to retrieve data from these volumes. When a user of your Web application requests large amounts of text, your application must return it in the most efficient manner possible. How should you build the large String object that is required to provide the most efficient response to the user?
Use a RichTextBox object to hold the data as it is being concatenated.
Use the Append method of the String class.
Use the String class and the & operator.
Use the StringBuilder class.
Useful resources, StringBuilder class
Statement 1: Value types are allocated on a stack
Statement 2: Reference types are allocated on a managed CLR Heap
Statement 1 is true and statement 2 is false
Statement 2 is true and statement 1 is false
Both statements 1 and 2 are true
Both statements 1 and 2 are false
Value types are either stack-allocated or allocated inline in a structure. Reference types are heap-allocated. Both reference and value types are derived from the ultimate base class Object. Useful resources, ValueType
For each image, set the AlternateText property to specify the text you want to display, and set the ToolTip property to True.
In the onmouseover event handler for each image, add code that calls the RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class.
In the onmouseover event handler for each image, add code that calls the ToString() method of the System.Web.UI.WebControls.Image class.
For each image, set the ToolTip property to specify the text you want to display.
Useful resources, ToolTip