HighTechTalks DotNet Forums  

Creating Web Controls

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Creating Web Controls in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Lloyd Sheen
 
Posts: n/a

Default Creating Web Controls - 12-17-2007 , 10:19 AM






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


Reply With Quote
  #2  
Old   
Eliyahu Goldin
 
Posts: n/a

Default Re: Creating Web Controls - 12-17-2007 , 10:45 AM






What if you make a separate project containing the controls only? It should
compile into a single dll.

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


"Lloyd Sheen" <a@b.c> wrote

Quote:
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



Reply With Quote
  #3  
Old   
Lloyd Sheen
 
Posts: n/a

Default Re: Creating Web Controls - 12-17-2007 , 11:28 AM




"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN (AT) mMvVpPsS (DOT) org> wrote in
message news:ehPTFQMQIHA.5016 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
What if you make a separate project containing the controls only? It
should compile into a single dll.

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


"Lloyd Sheen" <a@b.c> wrote in message
news:OB44PBMQIHA.5360 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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


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



Reply With Quote
  #4  
Old   
bruce barker
 
Posts: n/a

Default RE: Creating Web Controls - 12-17-2007 , 12:19 PM



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)


"Lloyd Sheen" wrote:

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.