473,467 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

two seperate ASP.net Web apps to share one ascx file

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 referencing an
..ascx that lives outside the application I get a failure.

Is there any way to have a global ascx file that multiple seperate
applications can use?

Thanks

Eric
Nov 18 '05 #1
2 1762
There is no supported way to share a user control between projects, although
there is a hack or two around that I've heard about.
The easiest way is to just copy the ASCX and paste it into your other
application.
The "right" way to create a control that is easily reusable across multiple
projects is to create a custom control instead of a user control.
Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Eric" <er**********@hotmail.com> wrote in message
news:53*************************@posting.google.co m...
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 referencing an
.ascx that lives outside the application I get a failure.

Is there any way to have a global ascx file that multiple seperate
applications can use?

Thanks

Eric

Nov 18 '05 #2
You could :
- copy the ASCX file
- or you could create a virtual directory that points tot the location of
this user control

Generally a user control contains code that is particulart to an app. A
server control is more suitable for use in a whole range of applications...

Patrice

"Eric" <er**********@hotmail.com> a écrit dans le message de
news:53*************************@posting.google.co m...
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 referencing an
.ascx that lives outside the application I get a failure.

Is there any way to have a global ascx file that multiple seperate
applications can use?

Thanks

Eric

Nov 18 '05 #3

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

Similar topics

0
by: Tariq Ahmad | last post by:
hi, i have a web user control which i share to different projects via Visual Source Safe. problem i have is that each project wants to change the inherits bit in the ascx file: so one copy...
1
by: Michael Evanchik | last post by:
Tying not to spaghetti code which seems to be easy to do in .net, im trying to do my main .net html in index.aspx, use repeated .net html in an .ascx files and all code im doing in .vb code behind...
3
by: Chad A. Beckner | last post by:
Hey everyone, Ok. I have a "template and skin" setup on the beginnings of a new portal site. In this site, there are going to be many applications, which will be store underneath the "master"...
1
by: Martin | last post by:
Hi, How can I share config data between different web apps? If I have 2 sub apps, can they inherit the config of the parent app? Is this the best way to share config between different web...
4
by: dx | last post by:
I have 3 vb.net web applications. I would like all 3 to have access to a library of user controls. server controls wouldn't cause a problem but these are user controls (ascx.) From each solution...
4
by: | last post by:
Hi, Im running IIS and all my data is stored on a network share e.g \\10.0.0.111\domain.com\main The problem i'm facing is that i dont know how to point my aspx.vb files to any dlls in the bin...
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....
9
by: TC | last post by:
Like a lot of database developers, I often choose Jet for the back- end. I'm starting to worry about what will happen when Jet is deprecated. Ostensibly, Jet users like me must switch to SQL Server...
3
by: james | last post by:
WATYF <WATYF1@gmail.comwrote in news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com: It gets complicated. First, a reference:...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.