Здравствуйте. Нужно ответить на 3 вопроса по ASP.NET.
1. You create an ASP.NET application for an online insurance site PremiumInsurance. A page named PersonalDetails.aspx has the following Page directive:
<%@ 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?
a. In the Page directive for PersonalDetails.aspx, ensure that the AutoEventWireup attributes is set to "true".
b. In the Page directive for PersonalDetails.aspx, ensure that the EnableViewState attribute is set to "true".
c. 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 the server.
d. 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.
2. You are developing a website that has four layers. The layers are user interface (web pages), businessobjects, data objects, and database. You want to pass data from the database to controls on a web form. What should you do?
a. Populate the data objects with data from the database. Populate the controls with values retrieved from the data objects.
b. Populate the business objects with data from the database. Populate the controls with values retrieved from the business objects.
c. Populate the data objects with data from the database. Populate the business objects with data from the data objects. Populate the controls with values retried from the business objects
d. Bind the controls directly to the database
3. XYZ is creating an e-commerce site for PremiumBoutique. The site is distributed across multiple servers in a Web form. 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?
a. Create a StateBag object. Use the StateBag object to store the DataSet object in the page's ViewState property
b. 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
c. 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
d. Use the Session_Start event to create an Application variable of type DataSet for each session. Store the DataSet object in the Application variable
На все остальные вопросы ответить удалось, а эти вызывают затруднение.