.NET Framework - Possible to add Web User Control to a Web Control Library?
Asked By Brian Cryer
31-Mar-08 12:07 PM
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.
Visual Studio 2005
(1)
ASP.NET
(1)
VB.NET
(1)
Application
(1)
Library
(1)
Control
(1)
BCEA
(1)
Alvin Bruney [ASP.NET MVP] replied...
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 replied...
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?
getting support for all the new .NET features. Microsoft developed C# specifically for the web. VB.NET was developed and remains being developed using C#. What motivated me to choose C# was That's why they are smart, they handle it for you. - - Regards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The O.W.C. Black Book, 2nd Edition Exclusively on www.lulu to go for embedded systems. For general business programming, leverage your VB skills and learn VB.Net (if your skills are VB 6) and C#. Once you learn either VB.net or C# the other one is relatively easy. Both have their strong and weak points
NET Framework Why is C# more prfferred than VB.NET. Why do software industries go for C# than VB.Net ? Wats the exact difference. . . Which can be the best option. . My guess would be the there is more c / c++ software than vb . . . However there is a wast amount of VB.Net code on the net and I get the feeling MSPress has more VB.Net books than C#, so . . . - - Happy coding! Morten Wennevik [C# MVP] Microsoft wrote the .NET framework
limiting .Net development with C++ / CLI to the smallest subset of .Net development technologies in Visual Studio, while all of the new technologies are given to C# instead ? The bubble has burst it serves little to no purpose for C++ programmers anymore. Here is the lineup: 1) ASP .NET, not for C++ 2) Web services in .Net, not for C++ and even web services C++. 5) WWF, not for C++ 6) LINQ, not for C++. Finally all advanced web application development is remove from C++ with the abandonment of the ATL Server. VS 2008 is being a version of C++ expressly created for .Net programming, should not have the same visual programming support in the Visual Studio IDE for mainstream .Net technologies that C# and VB .Net have, and that anyone using
VB (just because that's what the splash screen tells me), I'm writing in vb.net and you need to install the framework, whatever that means, to run an app written app has is some standard UI controls, buttons, etc. and a call to the excel library so it can read a worksheet. Is there a way to turn off the .net installing the whole .net framework? Or more generally speaking, when I develop an app with Visual Studio 2005, how can I set it up so it does not incorporate .net runtime requirements? - - Peter com. Hi Peter, Simply put, you can't. That's why the language is called "VB.NET" - it is a .NET language which runs on the .NET Framework! The framework itself is
last used 6.0), I started getting back into programming again, this time with VS 2005. I began reading up on VB.NET from various sources (books, internet, etc.) and found out about the CLR and how all difference being the syntax and structure of the individual languages. What I'm wondering, since VB.NET is obviously easier to learn / use than C#.NET and C++.NET, why do these others exist (in the .NET "format", not the standard library / compile to standalone .exe versions)? I've read discussions in forums and newsgroups from others someone who has written C and C++ code for over 20 years, I now prefer VB.NET to C#. Yes it is a little more verbose, but I like that. C# can