Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Refresjing an ASP Page

Reply
Thread Tools

Refresjing an ASP Page

 
 
Kerri
Guest
Posts: n/a
 
      10-26-2003
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.
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      10-26-2003
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"


 
Reply With Quote
 
 
 
 
Dan Brussee
Guest
Posts: n/a
 
      10-26-2003
On Sun, 26 Oct 2003 09:22:35 -0500, "Bob Barrows"
<(E-Mail Removed)> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp submitted to process asp;but calling asp page says:"Page not found" aftr 1hr Divya ASP General 2 05-11-2004 09:07 AM
using cookie in asp page in asp.net page =?Utf-8?B?bWFoc2E=?= ASP .Net 1 02-24-2004 05:04 PM
Add control to asp:PlaceHolder on asp.net page from user control on same page Dan ASP .Net 1 01-04-2004 08:14 PM
how ASP.NET page gets user input from another ASP.NET page?? Matthew Louden ASP .Net 4 11-24-2003 06:59 AM
Calling a html page from an asp page then returning to the next statement on the original asp page Chuck ASP General 0 07-05-2003 02:00 AM



Advertisments