渔鱼

人生豪迈,在此一博!

  博客园 :: 首页 :: 博问 :: 闪存 :: :: 联系 :: 订阅 订阅 :: 管理 ::

《Developing Web Applications With Microsoft Visual Basic.Net and Visual C#.Net》--Second Edition

1. Also remember that the Transfer method does not notify the user's browser that the page address has changed. If the user clicks Refresh on her browser, the user receives a warning that the page can't be refreshed without resending information. --134 

2. You can't store objects directly in ViewState. --P137

3. When you use data binding with a server control, you can turn off state management for that control. This improves performance because the DataBind method replaces the automatic view state management provided by ASP.NET. --P167

4. Use the RequiredFieldValidator control's InitialValue property to ignore instructions included in the control to validate. For example, if the control to validate is a DropDownList that includes an item in with the text Select an item, enter Select an item in the RequiredFieldValidator control's InitialValue property to make that selection invalid. --P189

5. Using the Execute Method
Use the Server object's Execute method to process a second Web form without leaving the first Web form. This technique lets you direct the results from a Web form to region on the current page. As with the Transfer method, Execute requires that the Web form's EnableViewStateMac attribute be set to False to disable ViewState hashing. --P199

6. Using the Transfer Method
Using the Transfer method is similar to executing a hyperlink or using the Redirect method, with one difference: Transfer can retain some information from the source page across requests. Setting the Transfer method's preserverFrom argument to True makes the form's QueryString, ViewState, and event procedure information available in the destination form.

7. Five Significant differences between programming for the Web and programming for Windows:
(1).Web applications use server controls and HTML controls rather than Windows controls.
(2).Web applications are displayed in a Web browser rather than in their own window.
(3).Web forms are not persistent while displayed. You must preserve persistent date in a state variable during page and control events.
(4).Processing occurs on the server, and data is exchanged through a cycle of requests and responses.
(5).Web applications are event-driven, and events occur at the application, page, and server control levels.

8. Server control events have three types, which occur in the following order:
(1).Validation events occur before the page is returned to server.
(2).Cached events are collected while the page is displayed and then processed once the page sends a request to the server.
(3).Postback events cause the page to send a request to the sever, but their event procedure is processed last in order of events handled.
posted on 2008-03-07 16:25  博闻李  阅读(152)  评论(0编辑  收藏  举报