Home All Groups Group Topic Archive Search About

Response.Redirect("WebForm1.aspx")

Author
14 Apr 2005 7:28 PM
Tmuld
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?

Author
14 Apr 2005 8:37 PM
Clamps
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?
|
Author
15 Apr 2005 12:32 PM
Tmuld
Thanks!  Might have to do it that way!

I guess I am curious why it does not work in vb.net.
Author
15 Apr 2005 12:32 PM
Tmuld
Thanks!  Might have to do it that way!

I guess I am curious why it does not work in vb.net.
Author
15 Apr 2005 2:08 PM
Cor Ligthert
Tmuld,

Be aware that this does a renew your page and is not a postback.
See for that my other message.


Cor