Possible to add Web User Control to a Web Control Library?

Possible to add Web User Control to a Web Control Library?

am 31.03.2008 18:07:05 von Brian Cryer

VB.NET, Visual Studio 2005, .NET Web Application.

Having created a Web Control Library is it possible to add a Web User
Control to it? I don't get the option to create a new web user control, and
if I copy one from my web application it doesn't then compile. So is it
possible? Is there a workaround or do I need to keep web user controls in
the application rather than a library?

Thanks.

Re: Possible to add Web User Control to a Web Control Library?

am 02.04.2008 03:51:02 von Alvin Bruney

Well, typically, a web user control would need a code behind/beside file.
You can then add a class library to the project which essentially gives you
what you want.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------




"Brian Cryer" wrote in message
news:#4Wi7k0kIHA.4536@TK2MSFTNGP06.phx.gbl...
> VB.NET, Visual Studio 2005, .NET Web Application.
>
> Having created a Web Control Library is it possible to add a Web User
> Control to it? I don't get the option to create a new web user control,
> and if I copy one from my web application it doesn't then compile. So is
> it possible? Is there a workaround or do I need to keep web user controls
> in the application rather than a library?
>
> Thanks.
>
>

Re: Possible to add Web User Control to a Web Control Library?

am 02.04.2008 11:19:04 von Brian Cryer

Thank you Alvin. Telling me it should be possible is nice, but I was hoping
for the "how" part.

My question remains of how to add these to a web control library? If I drop
them in they stop working and I don't get the option to create a web user
control in a web control library, so is it possible and if so how?

"Alvin Bruney [ASP.NET MVP]" wrote in message
news:F157C96F-450F-4665-BCEA-2E66720AD7AA@microsoft.com...
> Well, typically, a web user control would need a code behind/beside file.
> You can then add a class library to the project which essentially gives
> you what you want.
>
> --
>
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> The O.W.C. Black Book, 2nd Edition
> Exclusively on www.lulu.com/owc $19.99
> -------------------------------------------------------
>
> "Brian Cryer" wrote in message
> news:#4Wi7k0kIHA.4536@TK2MSFTNGP06.phx.gbl...
>> VB.NET, Visual Studio 2005, .NET Web Application.
>>
>> Having created a Web Control Library is it possible to add a Web User
>> Control to it? I don't get the option to create a new web user control,
>> and if I copy one from my web application it doesn't then compile. So is
>> it possible? Is there a workaround or do I need to keep web user controls
>> in the application rather than a library?
>>
>> Thanks.