-
Request.form
I have a page which is redirected from an page which includes the label named lblTest. How can I reach this on the current page using request.form (like asp 3.0)? I don't want to use the response.querystring because I have a lot of parameters which should be passed
-
Server.Transfer I belive is correct. It's Server or Response. it moves all the gunk from one page into your next page and you mega gunk if you keep doing it. Look it up in MSDN/msdn.microsoft.com for complete info.
-
Well now I've used Server.Transfer("print.aspx", True)
But at the page Print.aspx, how do I actually get the information from a textbox named textbox1 on the webform where Server.Transfer is sent from?
I have tried
Request.form("textbox1.text") but it doesn't work.
-
Request("TextBoxt1")
and um I don't know that it works with server controls. It does work with html <input> tag controls though. Like I said check out MSDN I've never used it. I always had a lower version of asp until now.
Here is an idea though. Throw your info into the session, Redirect, and when your done clear out the session by setting whatever Session["var"] = null/Nothing.
-
Uups, sorry I wrote
Request.Form("textbox1.text")
I meant of course
Request.Form("textbox1")
But it still doesn't work and I have set the preserve to True in the server.transfer
-
Now I've found this article http://www.dotnetbips.com/displayarticle.aspx?id=183
and I've implemented the EnableViewStateMac="False" in the Print.aspx, but still its not working