Doesent the Context.Handler allows you to access public properties on the
preceeding form even when using Response.Redirect. Im sure Ive done this
with code a bit similar to the following in the redirected to form. So lets
say we have form1 and form2 where form 2 is the one we redirect to.
so in form2 page_load event
'// Untested '//
If Not IsPostback then
dim f1 as Form1
f1 = Context.Handler.Form
response.write( f1.PublicPropertyForm1 )
End If
"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:Se*****************@newssvr27.news.prodigy.ne t...
rodchar wrote: i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click
event i response.redirect to page2.
i try to do a request.form("TextBox1") on page2.aspx and it doesn't have
the contents of the textbox on page1.
Response.Redirect() doesn't send along any information from the sending
page to the receiving page. With Response.Redirect you can only send
along data through the querystring. So, from Page1 you could do:
Response.Redirect("Page2.aspx?TextBoxValue=" & TextBox1.Text)
And then in Page2.aspx you could do:
Dim tbValue as String = Request.QueryString("TextBoxValue")
hth
--
Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell