Use the ASP.net 2.0 CSS control adapter to generate CSS-friendly HTML output _ practical Tips

Source: Internet
Author: User
"Original Address" tip/trick:use the ASP.net 2.0 CSS control adapters for CSS friendly HTML output
"Original published date" Wednesday, November, 2006 11:01 PM

Tired of the built-in ASP.net server-side controls that generate HTML <table> elements, and want you to use pure CSS solutions? If so, read on ...

Last week, we released the 1.0 official version of the ASP.net 2.0 CSS control adapter. These adapters take advantage of a new extensibility feature in ASP.net 2.0 that we call the "Control adaptation architecture," which allows developers to overwrite (override), modify (Modify), or fine tune (tweak) the display output logic of an existing server control without altering the properties of the control. Supported events or programming models, and so on.

Last week we released a ASP.net 2.0 CSS control adapter that provides 11 of the most common prefabricated control adapters for ASP.net controls, including GridView, Detailsview,formsview, DataList, Menu, TreeView, Login, Loginstatus,createuserwizard,changepassword and PasswordRecovery. CSS control adapters make these asp.net controls emit CSS-friendly (friendly) HTML output, eliminating things like inline style and <table>, which can be extremely useful when using CSS on your site.

Click on any of the links below to see how they changed the example before and after the built-in ASP.net control generated the logo:

Menu
Treeview
DetailsView
FormView
Gridview
DataList
Login
ChangePassword
PasswordRecovery
CreateUserWizard
LoginStatus
The CSS Control Adapter Toolkit includes both VB and C # source code for all of the above control adapters. You can get pure CSS output by using the source code without making any changes. Or if you want to further refine the output, you can go in and modify the adapters to generate any custom IDs you want.



2 months ago I posted a good tutorial showing you how to use a CSS control adapter, and I strongly recommend that you read it and learn how to get started.

Scott Mitchell also posted a very good article on CSS control adapters earlier today at Www.4guysfromrolla.com and discussed how to use them.

You can ask questions and get help with Http://www.asp.net's CSS control adapters forum on how to use them.

I hope this article is of some help to you,

Scott
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.