467,077 Members | 977 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

How can I obtain the IIS website name of an ASP.NET 2005 website

Hello
I have an ASP.NET 2005 web application that I'd like to be able to determine it's full url from within code.

Here's an example:
My URL for this sample web site is: https://sapps.cincinnatistate.edu/apply

I would like to be able to gather that URL from within an ASPX or a VB file within my web application.

Any help would be greatly appreciated.
Jul 18 '07 #1
  • viewed: 943
Share:
1 Reply
Frinavale
Expert Mod 8TB
Hello
I have an ASP.NET 2005 web application that I'd like to be able to determine it's full url from within code.

Here's an example:
My URL for this sample web site is: https://sapps.cincinnatistate.edu/apply

I would like to be able to gather that URL from within an ASPX or a VB file within my web application.

Any help would be greatly appreciated.
Hi Frankie,

Is there any problem with using "~/thePageYouWantToReferTo.aspx"?

For example:

Response.Redirect("~/myOtherPage.aspx")
Jul 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by new pip | last post: by
13 posts views Thread by coosa | last post: by
5 posts views Thread by Dariusz Tomon | last post: by
3 posts views Thread by Aaron | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.