Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:53 AM
FaYYaZ
Guest
 
Posts: n/a
Default Multiple global.asa ?

Hi All

I have one application folder containing all ASP code files.
I want host multiple sites pointing to same code.

Can I do this ?
If YES then how I can assign diffrent global.asa to each application.....


Regards
Fayyaz


  #2  
Old July 19th, 2005, 09:53 AM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: Multiple global.asa ?

> I have one application folder containing all ASP code files.[color=blue]
> I want host multiple sites pointing to same code.
>
> Can I do this ?
> If YES then how I can assign diffrent global.asa to each application.....[/color]

Sorry, one application folder can only have one global.asa file.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


  #3  
Old July 19th, 2005, 09:55 AM
Paul O'Mahony \(Hotmail\)
Guest
 
Posts: n/a
Default Re: Multiple global.asa ?

I've done something like this before. Depends on what youwant to do in
global.asa...

You can only have one global.asa, but you can do something like this...

Sub Session_OnStart()

Select Case LCase (Request.ServerVariables("SERVER_NAME"))
Case "www.site1.com"
' TODO: Insert Site 1 specific stuff here

Case "www.site2.com"
' TODO: Insert Site 2 specific stuff here

End Select

End Sub

HTH, Paul

"FaYYaZ" <fayyaz.ahmed@mvwebmaker.com> wrote in message
news:uNR8lWOuDHA.2304@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi All
>
> I have one application folder containing all ASP code files.
> I want host multiple sites pointing to same code.
>
> Can I do this ?
> If YES then how I can assign diffrent global.asa to each application.....
>
>
> Regards
> Fayyaz
>
>[/color]





 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles