In the Previous articles i explained allow only alpha numeric values in a textbox using asp.net, how to create cms website using c# and asp.net, how to sell products online through my website, how to create setup of visual studio windows application with database, how to add paging in gridview of asp.net and many more about ASP.Net.
Today i will tell you how to retrieve value from query string using C# and ASP.Net.
A Query String is information that is appended to the end of a pafe URL. A typical query string might look like the following example :
In this URL path, the query string starts with the question mark (?) and includes two attribute-value pairs, oe called category and other called price.
Query String provide a simple but limited way of maintaing state information. For example, they are an easy way to pass information from one page to another, such as passing a product number from one page to another page where it will be processed. However, some browsers and client devices impose a 255-character limit on the length of the URL.
Suppose you want to get value from query string "Title".
You can use Below Code :