Refreshing an ASPX Page

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.
 
T

Tohid

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
 
G

Guest

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






.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top