The emergence of computer security supervision of the Nanhai Public Security Bureau in Guangdong Province, so that the network programmer is fully found in the design of the "design program", of course, more, they feel asp.net Handheld. However, there is no progress that you don't want to be lazy. If you rely on ASP.NET's powerful features and don't want other means, you will soon find that someone else's design prior is much faster and easier. Now, let's learn a few tricks to lazy means, let others follow you behind you. Friends who have used ASP must remember that many of the ASPs require some third-party component implementation, such as the implementation of the file upload function, often use the ASPCNUP component implementation. Use these components, not only can expand the functionality of the ASP program, but also greatly improve program development speed. The lazy means introduced here is to introduce several components that are closely related to our usual design. I. Super Data Form: SuperdataGrid ASP.NET comes with powerful DATGRID function, customization is also very convenient, but because it is not specifically designed for database applications. So, when you connect the database, we have to connect to the database first, then bind data. SuperDataGrid is specifically designed for database, so those cumbersome connection databases, we don't have to write. Need SuperDataGrid to simplify some properties of DataGrid, use this control, we can easily implement the display, sorting, modifying data of database data, and implement the implementation of these functions, as long as you simply a few lines of code. We now look at its use. A) Display Data Sheet The following code demonstrates how to use SuperDataGrid to simply display all data in the data table: <% @ register tagprefix = "super" namespace = "sar" name "assembly =" superexpert.superDataGrid "%>
<% @ Register TagPrefix = "Super" Namespace = "Superexpert.Data" Assembly = "Superexpert.SuperDataGrid"%>