![]() |
Active Topics Memberlist Calendar Search |
| |
| Microsoft Learning | |
| |
|
| Author | Message |
|
kaanosh
Admin Group
Joined: 01 Jan 2006 Online Status: Offline Posts: 254 |
![]() Topic: Get Application Path [C# / ASP.NET] HTTP PathPosted: 11 May 2007 at 7:16am |
Use this in any ASP.NET page to get the application path. For example, if you run this function in http://localhost/pathtest/test.aspx, the function will return http://localhost/pathtest/ Another way to redirect is to use the .NET tilde. For example, to navigate to the home page of your website from any place, you would do Response.Redirect(“~”); or even ~/default.aspx. |
|
IP Logged |
|
|
||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
|