473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

WebForms and WebUserControls in DLL

Hi Guys,
I am very new to ASP.NET.

Is it possible to create a DLL with WebForms and WebUserControls in it, and
then to use that forms and controls in a web application?

I come from Windows Forms programming and I used to store in DLL's many
forms and user controls that I can share between applications.
For example I used to inherit from a form in a DLL to have some
functionalities already implemented in the DLL-form.

Is it possible to do the same thing in ASP.NET?
The Class Library (DLL) doesn't permit to add a WebForm on it... is there a
workaround or something that I'm missing?
It would be nice if, at least, I could write WebUserControls.

I am using VS2005 and C# language.

TIA

Ciao
Formentz
May 28 '07 #1
2 1194
Formentz wrote:
Hi Guys,
I am very new to ASP.NET.

Is it possible to create a DLL with WebForms and WebUserControls in it, and
then to use that forms and controls in a web application?

I come from Windows Forms programming and I used to store in DLL's many
forms and user controls that I can share between applications.
For example I used to inherit from a form in a DLL to have some
functionalities already implemented in the DLL-form.

Is it possible to do the same thing in ASP.NET?
The Class Library (DLL) doesn't permit to add a WebForm on it... is there a
workaround or something that I'm missing?
It would be nice if, at least, I could write WebUserControls.

I am using VS2005 and C# language.

TIA

Ciao
Formentz

Hi, Formentz

Check out for ClickOnce:
http://msdn2.microsoft.com/en-gb/net.../aa497348.aspx

HTH,
Petar Atanasov
http://a-wake.net
May 28 '07 #2
Formentz,
There has to be an ASPX or ASCX "Page" that represents the HTTP endpoint to
run your code that's in the assembly.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Formentz" wrote:
Hi Guys,
I am very new to ASP.NET.

Is it possible to create a DLL with WebForms and WebUserControls in it, and
then to use that forms and controls in a web application?

I come from Windows Forms programming and I used to store in DLL's many
forms and user controls that I can share between applications.
For example I used to inherit from a form in a DLL to have some
functionalities already implemented in the DLL-form.

Is it possible to do the same thing in ASP.NET?
The Class Library (DLL) doesn't permit to add a WebForm on it... is there a
workaround or something that I'm missing?
It would be nice if, at least, I could write WebUserControls.

I am using VS2005 and C# language.

TIA

Ciao
Formentz
May 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
1
by: Paul R | last post by:
Hi, I have a Winforms application that access some SQLServer2000 stored procedures. I have now written some new Webforms pages to use some of the same stored procs. The Webforms use the SAME...
2
by: Arjen | last post by:
Hello, I'm working on multiple webusercontrols which i'm using after each other. Now I have placed one webusercontrol on a webpage. How can I hide this one (after some action) and load an...
2
by: tony | last post by:
hi. is there a way to write several webusercontrols in 1 file ? i want to write 3 diffrent webusercontrol for each table. but i want to see the code in 1 file. is it possible ?
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
2
by: jesusR | last post by:
In VS2003 (framework 1.1 or less) i was shareing my webusercontrols with this procedure: I created a web project (webusercontrol_project) with the web user control, i compiled and everything ok....
5
by: Bit byte | last post by:
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that...
1
by: GenCode | last post by:
I am trying to create a page with many of the same webusercontrols that I can have all my dynamically created and I want each of those webusercontrols to respong to one event on the page. How...
1
by: ysudhakarrao | last post by:
Hi i am having two pages main.aspx and popupwindow.aspx .In main.aspx i am having tabpanel and button.popupwindow.aspx iam having listbox ie collection of webusercontrols.after click of that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.