How to fetch the querystring variable in jQuery


Monday, August 2, 2010

Suppose you are having this Querystring

http://www.induway.com/aboutus.aspx?Industry='india'

and if you wish to fetch value of Industry then you can do it like this,


if ('<%=Request("Industry")%>' != '') 
{
    alert('<%=Request("Industry")%>');
}


By using above code, you can use querystring variable value to your page anywhere.

Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer

Email: raj143svmit@gmail.com
e-Procurement Technologies Ltd (India)
www.abcprocure.com


No comments :