Response.redirect can pass the values if you put them into the url as variables.
Letâs say that the 1st value is T5T, and the second is 543. If the redirect is to http:// www . otherpage.com/page1.asp, make the href be http:// www . otherpage.asp/page1.htm?val_1=T5T&val_2=543. (Spaces were added to those address to keep them from automatically being converted to hyperlinks by wrox.com...)
Then at the server take the values from the Request.Query string, and put them into hidden controls, which then can be accessible to the script on that page.
Even if the pages are .htm URLs (instead of .asp), the variables will be in the location.href once the page is loaded. (The variables will be visible in the address bar.)
|