Creating a Custom BuildProvider in ASP.NET 2.0
page 2 of 6
by Bilal Haidar
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 14099/ 208

BuildProviders in ASP.NET 2.0

ASP.NET 2.0 Web Applications use the BuildPrrovider objects to generate source code for the different file types that exist in the application.  What happens is for each file type a different BuildProvider is built and the different properties, methods, fields, etc. for each file type is accessible within the Visual Studio 2005 IDE.

ASP.NET 2.0 includes a set of built-in BuildProviders, for example:

PageBuildProvider

UserControlBuildProvider

MasterPageBuildProvider

With the use of the above providers, you as a developer are able, while working inside the Visual Studio 2005, to access the different properties, methods, etc. at design time in the code-behind or code-inline of a Web Form or UserControl.

Have you ever asked yourself how does Visual Studio, when you add a usercontrol into a page, know all the properties and methods of that usercontrol? Well, BuildProviders are used to do all the work for you! Moreover, BuildProviders are used by the “aspnet_compile.exe” utility to generate the pre-compiled version of a web application as said in this blog post: ASP.NET 2.0 BuildProviders.

For more information on BuildProviders check the MSDN Documentation at: BuildProvider Class.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 7 and 4 and type the answer here:

User Comments

Title: Excellent   
Name: shahfein Khan
Date: 9/1/2008 10:26:46 AM
Comment:
each and every point is covered very neatly.
Title: About BuildProvide   
Name: Mike Klok
Date: 6/18/2008 5:00:18 AM
Comment:
Hi very good article
Title: About BuildProvide   
Name: tonyduan
Date: 4/20/2008 11:30:29 PM
Comment:
Hi,
Your writing is very very pretty.
i have a question,where can find the cs file be generated,and can i place the class in a cs file i appointed?
Title: About BuildProvide   
Name: manish
Date: 1/23/2007 6:04:50 AM
Comment:
Hi, This is very good article.

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 9/8/2008 12:00:41 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search