Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 124 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
124
Dung lượng
2,18 MB
Nội dung
AdvancedASP.NET Programming P R E S E N T E R : M R . D O A N Q U A N G M I N H Agenda Someadditionknowledge Performing Data Access Validating Form Input Control Styles, Themes, Skins MasterPage MasterPage SiteMap ASPX Life Cycle 10 phases of ASPX Life Cycle ASP.NET AJAX Framework for apply Ajax style in web application Someadditionknowledge Performing Data Access How to perform data binding Validating Form Input Control How to check input forms for errors and display messages to the user Styles, Themes, Skins Styles, Themes, Skins How to customize the look-and-feel or style of pages and controls in your application MasterPage How to define common structure and interface elements for your site SiteMap How to display navigation data that guides users through a site Performing Data Access Binding to Databases The GridView Control Is a new data-bound control in ASP.NET 2.0 for rendering data in a tabular grid format Supports many features (binding, sorting, paging, editing,…) The SqlDataSource Control The SqlDataSource Control Is a data source control that represents a connection to an ADO.NET SQL database provider Self-describing about its capabilities (select, insert, update, delete, sort) Data queries are specified directly as properties of the data source control Usually use in small application Validating Form Input Control Many controls allow validate input forms RequiredFieldValidator, RangeValidator, RegularExpressionValidator, CompareValidator, CustomValidator, ValidationSummary New features: Validation Groups, SetFocusOnError New features: Validation Groups, SetFocusOnError Styles, Themes, Skins Styles Apply style by using CSS (HTML Control) or by using style attributes (Web Control) Themes and Skins Theme defines the style settings for controls and pages separately from the pages of your application Theme defines the style settings for controls and pages separately from the pages of your application CSS file stores style settings for HTML Control, skin file stores style setting for Web Control In practice, Theme is folder that contains css file, skin file and image file Apply theme by setting directory Theme, apply skin by setting skin property MasterPage Master and Content Pages Master Page is a page which contains ContentPlaceHolder control ContentPlaceHolder defines a region of the master page rendering that can be substituted with content from a page rendering that can be substituted with content from a page associated to the master Content Page declare Content controls that specifically override content placeholder sections in the Master Page Apply Master Page by using the Master property of the Page SiteMap Site Navigator Data The navigation structures are represented in .sitemap files sitemap file is a XML file, in which a element contains Url, Title and Description of a page Site Navigator Control Site Navigator Control SiteMapPath: enables the users to navigate back to other pages in the hierarchy TreeView: provides the vertical user interface to expand and collapse selected nodes on a web page Menu: Provides a horizontal or vertical user interface that pops-out additional sub-menu's when a user hovers over an item [...]... web server XML is sometimes used as the format for transferrin between the server and client ASP.NET AJAX ASP.NET AJAX Is a free framework for quickly creating efficient and interactive Web applications that work across all pop browsers Is built-into ASP.NET 3.5 It is also available as a sep download for ASP.NET 2.0 ASP.NET AJAX Architecture ASP.NET AJAX server and c architecture ASP.NET AJAX Server... MaskedEdit … and so more Reference www .asp.net www.msdn.com Some others resource on Internet Security in NET PRESENTER: MR DOANQUANGMINH Agenda Authentication and Authorization How to check Authentication and Authorization Membership Service How to manage users in your application Role Management Service How to manage role of user Profile Service How to manage the addition information of user Authentication... contr the whole page, or use it together with the UpdatePanel cont perform partial-page updates at a defined interval ASP.NET AJAX Client Architectu Consist of JavaScript (.js) files that provide f for object-oriented development A browser compatibility layer ASP.NET AJAX core services An ASP.NET AJAX base class library A networking layer AjaxControlToolkit Provides a rich array of controls for building...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 Load Viewstate Data Viewstate Is a collection of name/value pairs Store information (state) of control and page LoadViewstate event Initialized controls receive... received by the control at the time it is populated 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 Object Load Control Tree Objects arranged in the page DOM Retrieve... this point, but they are to the client only 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 ASP.NET AJAX AJAX (Asynchronous JavaScript and XML) A group of inter-related web development technique creating interactive web applications Increased responsiveness and interactivity of web pa achieved . Advanced ASP. NET Programming P R E S E N T E R : M R . D O A N Q U A N G M I N H Agenda Some addition knowledge Performing Data Access Validating Form. Skins MasterPage 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. interface will implemented on each control that submitted data ASP. NET update the control state with the correct postback ASP. NET update the control state with the correct postback data, by