473,378 Members | 1,099 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,378 software developers and data experts.

Best Practice: How to share an ASP.NET webform across multiple web apps:

Hi,

What is the best way to share a C# web form across web
application? I'm new to ASP.NET. I've read though the docs and I
must be missing something. I do not see and appropriate library type
for this.

I have a .aspx web form that I want to make available for other
developers in my site. It is a powerful/flexible database browsing
form. I can get it to work as a form in the directory of the
application that I developed it for, but I cannot get the form to work
if I move it to a seperate library project. I also tried to keep the
form in the original project but put the form in a library directory
that other pages could reference.

Thanks,
John
Nov 18 '05 #1
1 1322
Hi,

You may write a class that do 'powerful/flexible database browsing' thing
and put this class to a library project.
The web form reference that project and create an instance of that class to
show resule on your web form.

--
Juno
MCSD.NET, MCDBA, MCSE
----------------------------------------------------------
Support Team of EasyDotNet, INC. http://www.EasyDotNet.com
DataForm.NET - The most powerful data entry web server control for ASP.NET

"Jheitmuller" <jo**@jrcc.net> wrote in message
news:de**************************@posting.google.c om...
Hi,

What is the best way to share a C# web form across web
application? I'm new to ASP.NET. I've read though the docs and I
must be missing something. I do not see and appropriate library type
for this.

I have a .aspx web form that I want to make available for other
developers in my site. It is a powerful/flexible database browsing
form. I can get it to work as a form in the directory of the
application that I developed it for, but I cannot get the form to work
if I move it to a seperate library project. I also tried to keep the
form in the original project but put the form in a library directory
that other pages could reference.

Thanks,
John

Nov 18 '05 #2

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

Similar topics

3
by: Ole Olsen | last post by:
Hi Any input on what is best practice: 1 ) Put an Interface definition (e.g. IMyInterface) into a separate Assembly 2 ) Put the Interface definirion into the same assembly that holds the...
2
by: TaeHo Yoo | last post by:
Hi all, I have a solution which contains multiple projects. Those multiple projects should share the same session. For example, users login, create the session for users then these session...
1
by: mg | last post by:
I took the following steps to share a user control across applications but was unsuccessful. WebUserControl: <%@ Control Language="c#" AutoEventWireup="false" ClassName="WebUserControl1" %>...
5
by: Schoo | last post by:
I have some program constants that I need to set and I thought it would be best to set them all up in a central location so that I can change them quickly when we go from development to production....
2
by: Eric | last post by:
I have a header server(.ascx) control that I want to use with all my existing seperate web apps. These web apps are configured as seperate web apps in IIS but when I try to build my solutiuon...
2
by: Sam-I-Am | last post by:
Hi There I have multiple asp.net web apps that all make use of a common set of sql data. I currently have each application cache this data using the cache api. As the data is same for all...
4
by: Chris | last post by:
Where I work, we basically have 1 large ASP.NET application that we work on. This is compiled into one big DLL. I think it would be a good idea to somehow break up the project, so that if I...
2
by: bryanrite | last post by:
I have been desperately trying to get this to work. I create a C# Web App on the localhost (the only place i'm allowed to put it). Put an arbitrary button or something in, compile it, run it......
4
by: Ned Balzer | last post by:
Hi all, I am pretty new to asp.net; I've done lots of classic asp, but am just beginning to get my mind wrapped around .net. What I'd like to do is include some code that tests if a user is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.