|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Response.Redirect("WebForm1.aspx")How do I return to a page using response.redirect - keeping the state value? Right now I have a back button - on pressing it - it send the user back to WebForm1.aspx - but all the previously typed data is gone. Originally there was a datagrid full of data and a textbox. Using the browser back button it works. Using a Button and coding: Private Sub btnBack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBack.Click Response.Redirect("WebForm1.aspx") End Sub Does not. Help? If you don't do any other server side processing in the button event, javascript it on
the client with window.back() Show quoteHide quote "Tmuld" <tmuld***@spliced.com> wrote in message news:1113502190.796480.70410@z14g2000cwz.googlegroups.com... | Hello, | | How do I return to a page using response.redirect - keeping the state | value? | | Right now I have a back button - on pressing it - it send the user back | to WebForm1.aspx - but all the previously typed data is gone. | Originally there was a datagrid full of data and a textbox. | | Using the browser back button it works. Using a Button and coding: | | Private Sub btnBack_Click(ByVal sender As System.Object, ByVal e As | System.EventArgs) Handles btnBack.Click | Response.Redirect("WebForm1.aspx") | End Sub | | Does not. | | Help? | Thanks! Might have to do it that way!
I guess I am curious why it does not work in vb.net. Thanks! Might have to do it that way!
I guess I am curious why it does not work in vb.net. Tmuld,
Be aware that this does a renew your page and is not a postback. See for that my other message. Cor
Help with Debugging
ownerdraw menu, help appreciated VB6 - Unable to read Text File Best way to get the value of one particular node of an XML string iHttpModule and Virtual Directories Custom Collections : overriding toString Sharing references/members Application class problem How to code for receiving data via modem? VB.NET and Palm Pilots |
|||||||||||||||||||||||