473,791 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1478
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*******@disc ussions.microso ft.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.WebC lient - 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*******@disc ussions.microso ft.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
3478
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 that in Windows 2000 SP3 IIS5 no .NET Framework? Thanks. -- George Hester __________________________________
1
1331
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
1453
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" site. How can I share the template user controls with these "sub-applications"? Example: Root
2
1567
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 apps, I want to save memory and "share" the cache across all sites. I was thinking of creating a webservice that would cache the data once and serve it to all sites.
4
1458
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 I reference the user control library project and create a virtual directory under each applicatoin that links to the folder that contains the ascx files but I get a runtime error like: Description: An error occurred during the parsing of a...
1
2684
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
5098
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 problem we have in user controls how to share them without duplicate the control in each project ....we need to remain the controls in main project and all subproject use them .....what is the avaiable technique to achieve this?
11
1576
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 contains function SetProp(). When App1 calls it, a property in the DLL is set to "abc". App2 calls a function GetProp(), in the same DLL. GetProp() should return "abc". This sounds like a simple thing to do, but making the DLL variable shared and...
2
3390
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 another machine (192.168.0.1). I have set the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection to 1. I create two Web Projects in Visual Studio: Redirect and Receive. Redirect has a...
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.