Click here to Skip to main content
16,016,076 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
hello
i want to get specific query of url

example :
url is : www.you.com/?query=test&lan=en&act=redirect

so i want value of act ! only

thank
Posted
Comments
Bala Selvanayagam 9-Feb-13 17:45pm    
So,whats is stopping you from getting the value of act?
download69 9-Feb-13 17:50pm    
by Request.UrlReferrer.GetComponents(UriComponents.Query, UriFormat.UriEscaped)
can get all query in url
now i want specific query ...

1 solution

For basic URI parsing, not too surprising, you can use the class System.Uri:
http://msdn.microsoft.com/en-us/library/system.uri.aspx[^].

—SA
 
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