Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 1.1 Insider Solutions- P2
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'asp.net 1.1 insider solutions- p2', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 38 1 Web Forms Tips and Tricks LISTING 1.14 Continued div ItemTemplate EditItemTemplate asp Textbox id txtPrecis runat server TextMode MultiLine Rows 4 Width 300 Style width 300px Text Container.DataItem Precis EditItemTemplate asp TemplateColumn You might like to experiment with the CellPadding and CellSpacing properties of the DataGrid control as well as with different values of the border style selector to get a different appearance for the scrollable regions. For example style border 3 inset when CellPadding and CellSpacing are both zero gives a very compact grid-like effect. Loading Controls Dynamically at Runtime When the ASP team at Microsoft was designing ASP.NET it probably seemed obvious that the way forward was to compile the pages into some kind of executable code. This approach means that there is a distinct separation between the tasks and the amount of processing work ASP.NET has to do of generating a page the first time it is executed when it has to be compiled and the resulting code written to disk and subsequent executions of the compiled code. As a result the way that the structure and content of a page are discovered and created from a file containing declarative definitions and code in script runat server sections only affects the initial hit performance and not the performance on subsequent requests. Consequently this has provided a development environment that supports quite complex page creation techniques such as the use of server controls and user controls page and control state maintenance and dynamic creation of a control tree for the page. In particular the use of a developer-accessible control tree has made it really easy to use ASP.NET to build pages that in ASP 3.0 and many other Web development environments would required complicated Response.Write statements include directives and other tricks. Being able to create controls dynamically at runtime meanwhile is extremely useful if you don t know beforehand how many instances of a .