Thursday 28 March 2013

pass values from one page to another using query string in asp.net


pass values from one page to another using query string in asp.net


Many times we want to pass values between asp.net pages. This can be easily done using Query String.
Let’s take an example where we will pass name & city of the person to page myWebpage.aspx using query string.
Let’s say we have two textboxes where we write Name & city. On submitting values of this textboxes should go to other page.
Like this link will form something like this
http://www.localhost.com/myWebpage.aspx?name=&city=
Let’s read this value on page load event of myWebpage.aspx.
Like this we can pass values from one page to another using query string

No comments:

Post a Comment