|
 |
aspx thread: User Controls & Applications
Message #1 by "Douglas Rohm" <drohm@a...> on Mon, 11 Mar 2002 20:46:31 -0500
|
|
Hi all,
I have more of a design question. My web site has .aspx pages in the
root and I was planning on having a sub-directory that was for members
only. The problem is that my .aspx pages all use user controls for the
header, leftmenu, rightmenu, and footer. I can include the user
controls for the .aspx pages that are in the root of the web site. When
I try to include the user controls into the .aspx pages that are in the
sub-directory I get an error saying I can't reference the files from
another application (the root application). I need my sub-directory to
be an application so I can use a web.config file for it and use Forms
authentication. The way I get around this problem is to copy the user
controls to the sub-directory application. It works and everything is
fine, but I don't think that's the smartest way to do it. Everytime I
have to change any of the user controls, I have to change it in two
locations now. Not good.
Does anyone have any insights into this that could give me some
suggestions on how to best achieve this without having to have two
copies of the user controls?
Thanks.
Doug
Message #2 by "Ken Schaefer" <ken@a...> on Tue, 12 Mar 2002 13:52:39 +1100
|
|
In IIS can you add the folder containing the necessary files as a virtual
directory underneath the folder that is your members-only application?
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Douglas Rohm" <drohm@a...>
Subject: [aspx] User Controls & Applications
: Hi all,
: I have more of a design question. My web site has .aspx pages in the
: root and I was planning on having a sub-directory that was for members
: only. The problem is that my .aspx pages all use user controls for the
: header, leftmenu, rightmenu, and footer. I can include the user
: controls for the .aspx pages that are in the root of the web site. When
: I try to include the user controls into the .aspx pages that are in the
: sub-directory I get an error saying I can't reference the files from
: another application (the root application). I need my sub-directory to
: be an application so I can use a web.config file for it and use Forms
: authentication. The way I get around this problem is to copy the user
: controls to the sub-directory application. It works and everything is
: fine, but I don't think that's the smartest way to do it. Everytime I
: have to change any of the user controls, I have to change it in two
: locations now. Not good.
:
: Does anyone have any insights into this that could give me some
: suggestions on how to best achieve this without having to have two
: copies of the user controls?
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |