intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Advanced ASP.NET Program PRESENTER: MR. DOAN QUANG MINH .Agenda Some addition knowledge Performing

Chia sẻ: Phan Thi Ngoc Giau | Ngày: | Loại File: PDF | Số trang:124

102
lượt xem
17
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Advanced ASP.NET Program PRESENTER: MR. DOAN QUANG MINH Agenda Some addition knowledge Performing Data Access Validating Form Input Control Styles, Themes, Skins MasterPage SiteMap ASPX Life Cycle 10 phases of ASPX Life Cycle ASP.NET AJAX Framework for apply Ajax style in web application Some addition knowledge Performing Data Access How to perform data binding Validating Form Input Control Styles, Themes, Skins How to customize the look-and-feel or style of pages and your application How to check input forms for errors and display message MasterPage How to define common structure and interface elements SiteMap How to display navigation data that guides users through Performing Data Access Binding to Databases The GridView Control Is a new data-bound control in ASP.NET 2.0 for render a...

Chủ đề:
Lưu

Nội dung Text: Advanced ASP.NET Program PRESENTER: MR. DOAN QUANG MINH .Agenda Some addition knowledge Performing

  1. Advanced ASP.NET Program PRESENTER: MR. DOAN QUANG MINH
  2. Agenda Some addition knowledge Performing Data Access Validating Form Input Control Styles, Themes, Skins MasterPage SiteMap ASPX Life Cycle 10 phases of ASPX Life Cycle ASP.NET AJAX Framework for apply Ajax style in web application
  3. Some addition knowledge Performing Data Access How to perform data binding Validating Form Input Control How to check input forms for errors and display message Styles, Themes, Skins How to customize the look-and-feel or style of pages and your application MasterPage How to define common structure and interface elements SiteMap How to display navigation data that guides users through
  4. Performing Data Access Binding to Databases The GridView Control Is a new data-bound control in ASP.NET 2.0 for render a tabular grid format Supports many features (binding, sorting, paging, editi The SqlDataSource Control Is a data source control that represents a connection to ADO.NET SQL database provider Self-describing about its capabilities (select, insert, upd sort) Data queries are specified directly as properties of the d control Usually use in small application
  5. Validating Form Input Control Many controls allow validate input forms RequiredFieldValidator, RangeValidator, RegularExpressionValidator, CompareValidator, CustomValidator, ValidationSummary New features: Validation Groups, SetFocusOnError
  6. Styles, Themes, Skins Styles Apply style by using CSS (HTML Control) or by usin attributes (Web Control) Themes and Skins Theme Theme defines the style settings for controls and pag separately from the pages of your application CSS file stores style settings for HTML Control, skin style setting for Web Control In practice, Theme is folder that contains css file, ski image file Apply theme by setting directory Theme, apply skin skin property
  7. MasterPage Master and Content Pages Master Page is a page which contains ContentPlaceH control ContentPlaceHolder defines a region of the master p rendering that can be substituted with content from associated to the master Content Page declare Content controls that specifica override content placeholder sections in the Master Apply Master Page by using the Master property of
  8. SiteMap Site Navigator Data The navigation structures are represented in .sitema sitemap file is a XML file, in which a element contain Title and Description of a page Site Site Navigator Control SiteMapPath: enables the users to navigate back to o in the hierarchy TreeView: provides the vertical user interface to exp collapse selected nodes on a web page Menu: Provides a horizontal or vertical user interfac pops-out additional sub-menu's when a user hovers item
  9. ASPX Life Cycle Object Initialization Load Viewstate Data LoadPostData Processes Postback Data Object Load Raise Raise PostBack Change Event Process Client-Side PostBack Event Prerender the Objects ViewState Saved Render To HTML Disposal
  10. Object Initialization Fired after the page's control tree has been successfully created The control declared in the .aspx file will be initialize default values Can use event to initialize some of the settings Handle by OnInit() method
  11. Load Viewstate Data Viewstate Is a collection of name/value pairs Store information (state) of control and page LoadViewstate event Initialized Initialized controls receive their properties: the infor that was persisted back to the server on the last subm Override LoadViewstate() method to customize received by the control at the time it is populated
  12. LoadPostData Processes Postback PostBack Term mean data posted to server IPostBackDataHandler interface will implemented o control that submitted data ASP.NET update the control state with the correct p data, by matching the control's unique ID with the n pair in the NameValueCollection
  13. Object Load Control Tree Objects arranged in the page DOM Retrieve the client-side properties set in the HTML Code logic is executed Handle by override OnLoad() method
  14. Raise PostBack Change Event RaisePostDataChanged event Occurs after all controls that implement the IPostBackDataHandler interface have been updated correct postback data Each control is flagged with a Boolean on whether it actually changed or remains the same since the prev submit Fire after all controls are updated and after the Load occurred
  15. Process Client-Side PostBack Eve RaisePostBackEvent The object which caused the postback is handled Typical by control that posted the page back to the s to a state change (with autopostback enabled) or a fo submit button that was clicked This is an ideal location to handle event-driven logic
  16. PreRender the Objects The last time changes to the objects can be s persisted to viewstate Used to make final modifications After the PreRender phase those changes to objects a in and can no longer be saved to the page viewstate Can be overridden using OnPreRender()
  17. ViewState Saved Viewstate is saved Object state data is persisted in the hidden Values can be saved to the ViewState object, but cha page controls are not Override this step by using SaveViewState()
  18. Render To HTML Render To HTML Building of the page by assembling the HTML for ou browser Handle when write custom HTML to the browser Render method takes an HtmlTextWriter object as a parameter and uses that to output HTML to be strea browser Changes can still be made at this point, but they are to the client only
  19. Disposal After the page's HTML is rendered, the objec disposed of. Used to release critical resources such as database connections, files, graphical objects etc
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2