473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Refresjing an ASP Page

Hi,

I have an ASP 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 the
details.

However, I want to display a message on the page 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.
Jul 19 '05 #1
2 1471
Kerri wrote:
Hi,

I have an ASP 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 the
details.
So page A submits data to page B which redirects back to page A?

However, I want to display a message on the page that
their account has been updated successfully.
You can use a querystring in the redirect url to signal page A to display
the message.

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


I don't understand, when page A submits data to page B, page A is no longer
"active" in the browser. When you do the redirect, page A is automatically
"refreshed".

HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
On Sun, 26 Oct 2003 09:22:35 -0500, "Bob Barrows"
<re******@NOyahoo.SPAMcom> wrote:
Kerri wrote:
Hi,

I have an ASP 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 the
details.


So page A submits data to page B which redirects back to page A?


I imagine the OP will clear this up, but I think they are posting to
the same page. Page A submits data to Page A along with the new data.
This is quite common of course. If I understand the question, then
where you would want to place the message, do the same test as you did
at the top of the ASP section to determine if this is an update or
not. If it is an update (data has just been updated) then show the
message.

This would also be a good place to display any error messages or
validation exceptions that you have caught on the server side.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
8
by: Workgroups | last post by:
I've got a page where the nature of the beast is such that the user clicks a submit button to ransomize some data in somewhat rapid succession (once per second, give or take). The page generates a...
6
by: Biguana | last post by:
Hi, Just wondering if anyone can help here. We have a site where most of the site opens in a window with no toolbars or menubar: window.open('mypage.aspx','self','toolbar=0, menubar=0, etc,...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
by: Iyigun Cevik | last post by:
In my website, all of my pages have similar construction, for example background color, header part, a menu, and a general table which all contents're sitting in. I want to use these in several...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.