Refreshing an ASPX Page

  • Thread starter Thread starter Kerri
  • Start date Start date
K

Kerri

Hi,

I have an ASPX Page where a user can update their account
info.

Having updated their account details I do a
Response.Redirect to the same page in order to refresh teh
details.

However, I want to display a message in a literal that
their account has been updated successfully.

How can I do this and also refesh the page without
clearing the message?

Any help is much appreciated.

Thanks,
Keer.
 
One way is to pass a "key" and get it via "request". I mean use
"response.redirect()" like:
Response.Redirect("PageName.aspx?update=yes")
So check on the "Page_load()" function if Request("redirect") is yes or
Null.

Another way is to define a session variable and get its value in the page:
Session.Contents().Item("MyVar")

I hope it helps you.
-tohid
 
Perfect.

Thanks for that Tohid.
-----Original Message-----
One way is to pass a "key" and get it via "request". I mean use
"response.redirect()" like:
Response.Redirect("PageName.aspx?update=yes")
So check on the "Page_load()" function if Request ("redirect") is yes or
Null.

Another way is to define a session variable and get its value in the page:
Session.Contents().Item("MyVar")

I hope it helps you.
-tohid






.
 
Back
Top