Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / May 2006

Tip: Looking for answers? Try searching our database.

interface alteration

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nate - 19 May 2006 17:19 GMT
In Dino Esp... book he talks about how user controls are the way to replace
the old file include method. Then he goes on to say that if it is a large
site it becomes a problem because every time that you change the interface of
that control you will have to recompile all the pages that reference that
control.

I am pretty new with the asp.net env. and haven't built any controls that
way yet but would like to know what the reality of this senario is and what
is the alternative method if not using a user control.
Is "user control" the correct term? Don't have his book, I just read as much
as I can while at Borders Bookstore.
Nathan Sokalski - 29 May 2006 19:32 GMT
Well, first of all, even though what he says about "needing to recompile all
pages that reference that control" is technically true, that is not as much
of a hassle as it sounds like. This is because a Solution is divided into
Projects, and each project is compiled separately (1 Project is compiled
into 1 *.dll). Because when making a control it is usually put in the same
Project as the pages that use it, you will normally end up recompiling the
pages that use it at the same time you compile the control. If you do end up
making a control that is not in the same project as the pages that use it,
or if you have multiple projects that use the same control, you can either
compile the entire Solution (this is the same as compiling all your
projects) or individually compile the Projects that use the control. How
many Projects you have will depend on how many different areas your site
has. It is possible to do a large site with just one Project, but it is not
usually recommended if you have areas of your site that are unrelated. But
since all the *.dll files go in the same directory on the web server anyway,
what I usually do if a control is used by more than one Project is compile
the solution and upload all the *.dll's, it only takes a couple minutes
anyway. You will find this easier to understand once you've been using
ASP.NET a little longer. Good Luck!
Signature

Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

> In Dino Esp... book he talks about how user controls are the way to
> replace
[quoted text clipped - 11 lines]
> much
> as I can while at Borders Bookstore.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.