Link to home
Start Free TrialLog in
Avatar of rafaelrgl
rafaelrgl

asked on

get the page name and querystrings only

hi, supose i have this page:

http://www.mywebsite.com/test.aspx?id=1

i want to get this part only: test.aspx?id=1
i know how to get the last part: Request.Url.Query but how to get just the page name test.aspx?
some help?
Avatar of leakim971
leakim971
Flag of Guadeloupe image

With Javascript use : var thePath = location.pathname.substr(1);
Avatar of rafaelrgl
rafaelrgl

ASKER

and with asp.net using vb
ASKER CERTIFIED SOLUTION
Avatar of disrupt
disrupt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks a lots :)