I have two webform ....
Default.aspx & Default2.aspx
I want In Default.aspx on button click event it passes the whole query string to Default2.aspx textbox ?
How to do that uisng vb.net ...
if the query string generated from default.aspx on button click event is http://www.abcd.com?name=sumit&age=23&class=10&role=monitor
then on Default 2 the textbox2 text will be ...
Use
Server.Transfer("default2.aspx",True)
Where the 2nd parameter preserves the querystring / form collections.
An asp:button also has a PostBackUrl property that you can make use of.