Confusion about the new control under ASP.net 2.0

Source: Internet
Author: User
Tags define interface net access
Asp.net| Control

You know, under asp.net2.0, Microsoft has given a new control of the system, some of it useful, such as the Membership member management system, and the Step-by-Step wizard controls have saved us a lot of time, while others, such as the GridView from the DataGrid sometimes feel not that Well.

This control provides us with great convenience while also losing flexibility, such as directly specify an SQL statement can complete the work of data access, and pagination shows that the sort is more simple than eating. As we all know, this is contrary to our layered logical architecture design, this creates an embarrassing situation in which it is difficult for beginners to make powerful and sophisticated programs with only these controls, and more importantly, it encapsulates a lot of operations, and we don't know how it works in the background, for starters, If something went wrong they had no idea where the problem was, and experienced programmers would not adopt such an ugly design. To use it to complete the upgrade, and so on, we will require that the input of the content to be validated is also more inconvenient, when the control runs, it generates a large ViewState field, which is less efficient, as far as paging performance under large volumes of data is concerned, although the dataset can now be serialized as binary, But the results are still unsatisfactory. So we're going to ask, where is the value of such a control?

The GridView can do pagination, but it provides a paging style that is also true if it is cumbersome to manually define it. Then again, if you need very powerful data operations, such as multiple-column sorting, aggregation, export, totals, and even drag-and-drop, the complex features might as well be implemented by other means, such as business controls and the use of smart client platforms. The dozens of-style properties of the GridView are also poorly designed, although you can use these attributes to make a very flashy user interface, but once a project has dozens of GridView to modify the work is simply unthinkable, so We also have to use a powerful tool like CSS to define its style.

There is also the same chicken with the SQL data source control, to make the program so simple, although there is no practical value in large projects, I think there is some benefit, at least it can improve the level of interest in programming and not high confidence in people, Think I was just like elephant with DW's automatic coding function to do a personal site out to play, although it generated the code is so ugly, logic is so confusing, and then I also with full enthusiasm into programming, otherwise I will not go to today.

I am more optimistic about that is called ObjectDataSource Data source Control, why, it can be in the background free control program logic, so that each step of the operation is very transparent, coupled with the use of the powerful features of generics to make our program look good. and the data source for our foreground data binding work saved a lot of time, good use of this feature can bring a lot of convenience for our program.

Familiar with Microsoft's Starterkit friends know that there is a personal site of the sample program, is the object of data source application of a very typical example, in this program can be said to provide the asp.net2.0 new control features played to the fullest, with a small number of code to complete a lot of logic work. But it is only a personal station, a lot of local work is not enough, for example, I can submit an empty form, it does not make any checks and so on.

All in all, these new controls can be used reasonably well, and also give friends who have low programming skills a chance to have a C # sharp new experience. From the function of the individual think that the three-legged cat's trick is much better, a lot of people are still discussing how to program under the DW, there is something wrong, DW is more suitable for some interface.

With regard to paging, I am currently working on a paging control under ASP.net 2.0, which is, in general, upgraded from the 1.1 MSDN SqlPager. One is the program to 2.0 of the migration, the second is the form of user control, so that the style of pagination can be freely extended according to their preferences, and can use Microsoft's latest Enterprise Library data access block to communicate with the database, you can use the data cache or read only the required records, improve efficiency. Now the basic completion will be released on the new day, welcome everyone's attention. At the same time because of their own level and energy is limited, it is inevitable that there are some deficiencies and shortcomings, but we rest assured that the control to develop the source code, you can freely expand it, if there is a problem can also be from the source code to troubleshoot and amend.

On the issue of large data paging today on the Internet to see a foreigner's things seem very interesting, I will take some time to translate to dedicate to everyone, here is the source text address, the effect is to use SQL SERVER 2005 Row_number () features to work.







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.