473,406 Members | 2,371 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,406 software developers and data experts.

Refreshing an ASPX Page

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.
Nov 17 '05 #1
2 980
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

"Kerri" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
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.

Nov 17 '05 #2
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 orNull.

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

"Kerri" <an*******@discussions.microsoft.com> wrote in messagenews:05****************************@phx.gbl...
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.

.

Nov 17 '05 #3

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

Similar topics

1
by: LRD | last post by:
Form not refreshing after autopostback unless keyboard or mouse move Hi, We created several new ASP.NET C# forms for our intranet. In each form we use panels for different sections of the...
1
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is...
1
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is...
7
by: Daniel Walzenbach | last post by:
Hi, when I start my asp.net page for the first time I almost always get the following output: form name="Form1" method="post"
0
by: Jeronimo Bertran | last post by:
Hi, I have a page that includes an image that uses an image map. When the user clicks on a button, the image needs to be refreshed and the map needs to be updated without refreshing the entire...
5
by: Jensen Bredal | last post by:
Hello, I need to display self refreshing information on a web page written with asp.net. I would image that the info would be displayed either as part of a user control or a web control. How can...
1
by: Jennyfer J Barco | last post by:
Hello I have a datagrid and a linkbuttom in the datagrid that says Picture, every time I click on the link "Picture" my program opens a popup window showing a picture of the item the selected and...
10
by: Nathan Sokalski | last post by:
One thing that I have often needed to do that I have been unable to find a way to do is refresh the page (basically do the same thing as pressing the browser's Refresh button). I know how to do...
0
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
1
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.