|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can I have a global.asax just for an application?Hello,
I have a web site that has a folder configured as an application. Is it possible to have a global.asax in the folder and have any requests to pages in the folder sent there instead of the main site? The reason I ask is because I am developing the folder (ie the separate application) in VWD, and it doesn't know it's part of a bigger site. It only knows about this one folder, so it ignores the global.asax file in the parent folder. TIA -- Alan Silver (anything added below this line is nothing to do with me) Hi Alan,
It's not a problem unless either site needs access to the Application State of the other site. -- Show quoteHide quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer You can lead a fish to a bicycle, but it takes a very long time, and the bicycle has to *want* to change. "Alan Silver" <alan-silver@nospam.thanx> wrote in message news:8GdHtmAiEeoDFwRC@nospamthankyou.spam... > Hello, > > I have a web site that has a folder configured as an application. Is it > possible to have a global.asax in the folder and have any requests to > pages in the folder sent there instead of the main site? > > The reason I ask is because I am developing the folder (ie the separate > application) in VWD, and it doesn't know it's part of a bigger site. It > only knows about this one folder, so it ignores the global.asax file in > the parent folder. > > TIA > > -- > Alan Silver > (anything added below this line is nothing to do with me) >It's not a problem unless either site needs access to the Application State No they don't. The problem is that when I move the global.asax from the >of the other site. root folder to the subfolder (which is set up as an application in IIS), the file is ignored and the code in the Application_BeginRequest event handler isn't called. It sounds like it should be called. Any idea why it isn't? Thanks for the reply. -- Alan Silver (anything added below this line is nothing to do with me) Every Application has to use its own global.asax. The global.asax is a class
that resides in the Application domain for that Application. -- Show quoteHide quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer You can lead a fish to a bicycle, but it takes a very long time, and the bicycle has to *want* to change. "Alan Silver" <alan-silver@nospam.thanx> wrote in message news:tnCTVZBcKfoDFwBl@nospamthankyou.spam... > >It's not a problem unless either site needs access to the Application > >State >>of the other site. > > No they don't. The problem is that when I move the global.asax from the > root folder to the subfolder (which is set up as an application in IIS), > the file is ignored and the code in the Application_BeginRequest event > handler isn't called. > > It sounds like it should be called. Any idea why it isn't? Thanks for the > reply. > > -- > Alan Silver > (anything added below this line is nothing to do with me) >Every Application has to use its own global.asax. The global.asax is a class That's what I thought, but it wasn't working.>that resides in the Application domain for that Application. Having said that, I just tried it again (machine been off over the weekend and so is probably refreshed after having had a good sleep!!) and it is working. Weird. Thanks anyway. -- Alan Silver (anything added below this line is nothing to do with me)
Other interesting topics
Access to the path is denied - trying to write a file
CheckBoxList problem. Want to add some javascript to each checkbox CSS Question Please help me with FxCOP 1.32 and ASP.NET 2.0 Property Feature For Comparing DateTime Error: Cannot use a leading .. to exit above the top directory. Poping up a window AND redirecting the page thtat triggered the po 2005 Differences in a nutshell? Getting Value out of a data repeater checkbox download location... Virtual images for the team system |
|||||||||||||||||||||||