This is a discussion on How to get URL without querystring?in asp.net within the ASP and ASP.NET Programming forums, part of the Web Development category; How to get URL without querystring?in asp.net...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi.. Try this code,It will work Consider the URL http://localhost:8080/Test/Default.aspx?b=10&c=20 string a = Request.Url.GetLeftPart(UriPartial.Path); this will return only "http://localhost:8080/Test/Default.aspx" to the variable a. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get values from querystring? | S.Vinothkumar | Ruby | 2 | 11-26-2007 06:40 AM |