Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have pointed out 2 url for my application server, which means user can login with any of that url
(Say for an example user can browse with www.xxx.com and www.yyy.com).
Now, i have a problem with getting base URL from my server.

Early we have used only one domain url say www.xxx.com,that time i dont have any problem to get base URL.

When ever i got base URL through code,it gives right base URL www.xxx.com.

But after pointing out with two URL's, we got problem to get base URL's

For example

When i try to get base url through code, when my browser url is www.xxx.com. The base url will be www.xxx.com

When i try to get base url through code, when my browser url is www.yyy.com. The base URL will be www.xxx.com only... but my base url should be www.yyy.com

Please help me to get right base url through the C# code.



thanks and regards
Arun R
Posted

1 solution

Check this link
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900