HOW TO GET QUERY STRING WITH MULTIPLE PARAM

nithersh ankugan

Total Post:2

Points:14
Posted by  nithersh ankugan
 1589  View(s)
Ratings:
Rate this:

Hi!

My web application URL as below

http://www.xyz.com?refurl=/product/info/pList.aspx?pID=1&pQ=Product1&pPrice=$147

I want to get all parameter values from URL. How it is possible

Please help me!

Thanks in advance

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: How to get query string with multiple param

    Hi Nithersh!


    You can try this way 

    Uri uri = new Uri(@"http://www.xyz.com?refurl=/product/info/pList.aspx?pID=1&pQ=Product1&pPrice=$147"); 
    string query = uri.Query;


Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!