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 / General / December 2007

Tip: Looking for answers? Try searching our database.

Creating Web Controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Sheen - 17 Dec 2007 15:19 GMT
Is it possible to create a library of Web UserControls.  It seems (and most
likely this is the answer) that when I create either a class library or a
Web Control Library, I cannot add Web User control to that library.  I would
like to have them as a dll which I can reference but it doesn't seem
possible at least using VS 2005 Pro.

Thanks
Lloyd Sheen
Eliyahu Goldin - 17 Dec 2007 15:45 GMT
What if you make a separate project containing the controls only? It should
compile into a single dll.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Is it possible to create a library of Web UserControls.  It seems (and
> most likely this is the answer) that when I create either a class library
[quoted text clipped - 4 lines]
> Thanks
> Lloyd Sheen
Lloyd Sheen - 17 Dec 2007 16:28 GMT
> What if you make a separate project containing the controls only? It
> should compile into a single dll.
[quoted text clipped - 7 lines]
>> Thanks
>> Lloyd Sheen

This is what I am attempting to accomplish.  When I look at my published
site though I can see the .ascx code for each of the Web UserControls.
Remember I am not trying to use Web Usercontrols not Web Custom Controls
(what an unfortunate naming mistake).

I can create a Web Custom Control project and it auto adds a Web Custom
Control.  In this project there is no way to add a Web Usercontrol.

Thanks
Lloyd Sheen
bruce barker - 17 Dec 2007 17:19 GMT
the design of web user controls is not conducive to this.

while you can compile them into a dll with aspnet_compiler and the
aspnet_merge, to actually  use the control,  along with the reference to the
dll, you still need the ascx file.

-- bruce (sqlwork.com)

> Is it possible to create a library of Web UserControls.  It seems (and most
> likely this is the answer) that when I create either a class library or a
[quoted text clipped - 4 lines]
> Thanks
> Lloyd Sheen

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



©2008 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.