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

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 1457
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George Hester | last post by:
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do...
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" %>...
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"...
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: 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...
1
by: guoqi zheng | last post by:
I have an application in IIS with a few sub domains assign to it. Is there a way for me to share session data across those subdomains? regards, Guoqi Zheng http://www.ureader.com
5
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the...
11
by: Charles Law | last post by:
I have just been asked how to share functions and properties between two running applications. For example, I have App1 and App2 both running on the same machine. App1 uses a DLL (perhaps) that...
2
by: metafedora | last post by:
I am trying to use Session and StateServer to store values to be used by two different Web Applications, which run on the same IIS, in different Virtual Directories. I have StateServer running on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.