470,647 Members | 1,229 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

share aspx across web applications

Hi,

If I have several aspx pages that I want to share across
multiple web applications, how would I organize them?
Basically, a subset of the pages on a given site will be
on several sites. These pages will interact with a
database, check security, etc.

I have seen this KB article:
http://support.microsoft.com/default.aspx?kbid=324785

but my concern is how to handle authentication +
authorization on the shared virtual directory? Putting a
virutal directory under the current web app and have this
virtual directory point to another asp.net web app seems
like a cute way to do share some user controls but not a
way to handle pages that do anything meaningful...

Any ideas?

Jon Paugh
Nov 18 '05 #1
3 1372
One thing you can do is build a dll and then install this dll into the GAC.
Note, however, that your declarative code won't be included in the compiled
dll (these are compiled on the fly - only the code behind is pre-compiled)
so you'll have to do your dirty work in code instead of using the nice
designer, but it is an effective alternative. Another option is to actually
just call the pages you want from an internal object that can post to the
page, and then just render the HTML that is returned.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Jon Paugh" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
Hi,

If I have several aspx pages that I want to share across
multiple web applications, how would I organize them?
Basically, a subset of the pages on a given site will be
on several sites. These pages will interact with a
database, check security, etc.

I have seen this KB article:
http://support.microsoft.com/default.aspx?kbid=324785

but my concern is how to handle authentication +
authorization on the shared virtual directory? Putting a
virutal directory under the current web app and have this
virtual directory point to another asp.net web app seems
like a cute way to do share some user controls but not a
way to handle pages that do anything meaningful...

Any ideas?

Jon Paugh

Nov 18 '05 #2
Thanks for response.

I know about using custom controls and putting them in
the GAC, but in this case it really is a pain. I have
what is essentially a seperate sub-application that will
be common to several apps (it will setup users, setup
customer info, etc - admin functionality). I think coding
this as custom controls is more trouble than its worth.

The idea of using a sort of proxy object is interesting.
How would it work exactly? Wouldn't I still have to put
quite a bit into this proxy?

-----Original Message-----
One thing you can do is build a dll and then install this dll into the GAC.Note, however, that your declarative code won't be included in the compileddll (these are compiled on the fly - only the code behind is pre-compiled)so you'll have to do your dirty work in code instead of using the nicedesigner, but it is an effective alternative. Another option is to actuallyjust call the pages you want from an internal object that can post to thepage, and then just render the HTML that is returned.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)


Nov 18 '05 #3
Check into System.Net.WebClient - you can use this class to get information
from a web page, and then add it to the InnerHtml of wherever you want to
place it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Jon Paugh" <an*******@discussions.microsoft.com> wrote in message
news:14****************************@phx.gbl...
Thanks for response.

I know about using custom controls and putting them in
the GAC, but in this case it really is a pain. I have
what is essentially a seperate sub-application that will
be common to several apps (it will setup users, setup
customer info, etc - admin functionality). I think coding
this as custom controls is more trouble than its worth.

The idea of using a sort of proxy object is interesting.
How would it work exactly? Wouldn't I still have to put
quite a bit into this proxy?

-----Original Message-----
One thing you can do is build a dll and then install

this dll into the GAC.
Note, however, that your declarative code won't be

included in the compiled
dll (these are compiled on the fly - only the code

behind is pre-compiled)
so you'll have to do your dirty work in code instead of

using the nice
designer, but it is an effective alternative. Another

option is to actually
just call the pages you want from an internal object

that can post to the
page, and then just render the HTML that is returned.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mg | last post: by
3 posts views Thread by Chad A. Beckner | last post: by
2 posts views Thread by Sam-I-Am | last post: by
4 posts views Thread by dx | last post: by
1 post views Thread by guoqi zheng | last post: by
5 posts views Thread by Raed Sawalha | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.