Вернуться   Компьютерный форум > Компьютеры > Программы > Программирование
 
 
Опции темы
Старый 05.11.2009, 17:43   #1 (ссылка)
Новичок
 
Регистрация: 03.04.2009
Сообщений: 88
Репутация: 1
По умолчанию Вопросы по ASP.NET

Здравствуйте. Нужно ответить на 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

На все остальные вопросы ответить удалось, а эти вызывают затруднение.
Alexei1986 вне форума  
Ads
 


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 
Опции темы

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Вопросы gladiator231 Windows Vista 3 09.01.2011 20:17
Вопросы по оперативке ASPID Железо 12 25.11.2010 23:47
Вопросы по оперативке =) Cuser Железо 4 08.03.2010 16:45
Clock Gen и MemSet - вопросы? и ..вопросы solo081 Разгон и моддинг 2 01.03.2010 10:05
Вопросы по NFS Undercover krokhmal96 Игры 2 08.01.2010 12:32
Вопросы по Lightscribе Cembalo Программы 4 21.10.2009 21:56
Вопросы по XP TOKAPEB Windows XP 5 13.08.2009 17:17
Вопросы о аукционах Serrov Веб-строительство 7 03.08.2009 19:53
Есть вопросы! zavzel Выбор комплектующих 29 05.07.2009 22:31
Вопросы по гарантии!!! Bu[TT]ers Железо 2 21.01.2009 00:03
Есть вопросы zavzel Железо 10 17.07.2008 03:17
Вопросы по PHP Ha Emmid Веб-строительство 2 25.02.2008 23:09


Текущее время: 19:19. Часовой пояс GMT +4. Powered by vBulletin® Version 5.8.9
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.