Thanks for your reply.
Suppose I have 2 websites "abc.com" and "cde.com", both pointing to the same
physical path on the server.
I have a config section in web.config, for example, defines the greeting
message in the web site.
If a client connect to "abc.com", my aspx page will display a message
"Welcome to ABC World".
If a client connect to "cde.com", my aspx page (the same page) will display
the message "Welcome to My second World", for example. (These messages will
not have any relationship with the domain name so we won't simply get the
domain name)
So I just want to define this greeting message in the web.config file and
have it displayed according to different web sites.
Actually there's much more to config and many different pages, so we will
not consider programatically write the logics in the code behinds.
Thanks.
George
"Saravana" <sa******@sct.co.in> wrote in message
news:nj*****************@news.cpqcorp.net...
No, you cant use multiple web.config for one application. If you tell us
what information you are getting it from web.config file. Then we can
provide with different options for doing that.
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"George" <ge**********@asia.morningstar.com> wrote in message
news:#9**************@TK2MSFTNGP09.phx.gbl... Hi,
Is it possible to specify the location of a web.config file in an
ASP.NET application?
I have one ASP.NET application which is to be hosted on 2 web sites in
the same web server. I want to configure the 2nd web site as virtual
directory so that the 2 web sites are pointing to the same application. However,
there are different configuration settings for the 2 web sites, so that
accessing these 2 sites' same ASP.NET application will have different outcome.
Thanks and Regards,
George