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

Using controls across multiple virtual directories

Is there any easy way to have .ascx controls used by pages in different
virtual directories?

My situation is that I have some pages that need to be accessed using SSL -
so I've put these pages in a separate virtual directory that is set up in
IIS to require secure access. Trouble is however that these pages need to
use some of the same .ascx controls that my non-secure pages need (and which
are therefore located in the root directory, where my non-secure pages are).
And every time I try to register the controls in the secure .aspx files,
VS.NET complains that I'm not
allowed to use controls in different applications or virtual directories.

Any help appreciated :-)

Paul

Nov 18 '05 #1
1 1184
"Paul Hodgson" <ab*@xyz.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Is there any easy way to have .ascx controls used by pages in different
virtual directories?

My situation is that I have some pages that need to be accessed using SSL - so I've put these pages in a separate virtual directory that is set up in
IIS to require secure access. Trouble is however that these pages need to
use some of the same .ascx controls that my non-secure pages need (and which are therefore located in the root directory, where my non-secure pages are). And every time I try to register the controls in the secure .aspx files,
VS.NET complains that I'm not
allowed to use controls in different applications or virtual directories.
ASP.NET allows to share source by pointing to the correct .cs code but they
will be and should be compiled for their own assemblies.

It would be the best thing to create your controls as separate
control-library, compile that, and distribute that assembly among your
asp.net apps.
Any help appreciated :-)

Paul



Nov 18 '05 #2

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
2
by: Greg W. | last post by:
In our setup project, we have the standard web application folder, but we also have 4 web custom folders (virtual directories) that are created at the same level as the web application folder...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
0
by: David | last post by:
I would like to reuse user controls across multiple web applications. Is that even possible? I experimented that by dragging and dropping a user control which is in one web project to another...
3
by: dph | last post by:
I have an asp.net application that I need to run from multiple different virtual directories. However, I don't want simply copy an instance of the application into each of these directories as...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
4
by: | last post by:
I'm going to ask the really short version of a rambing scenario I posted in Feb.: http://tinyurl.com/2nx4k7 The short version: a) A VS.NET solution can comprise many projects. If you're working...
6
by: greek_bill | last post by:
Hi, I'm interested in developing an application that needs to run on more than one operating system. Naturally, a lot of the code will be shared between the various OSs, with OS specific...
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
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.