473,394 Members | 1,749 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,394 software developers and data experts.

Problems with refreshing page contents

Hello,

I'm a newbie in ASP.NET and i have following problem.

I've got two separate pages. On the first one i have a list of workers,
which is read from mdb database and a button with event
Response.Redirect("SecondPage"); so after i press this button I'm
redirected to the second one.
On the second one there is a simple form and a button which is saving
form contents into the database and redirects me back to the first page
(with redirect method). The problem is when I'm going back to the first
page, this page is not reading data from database (where is new row
added), but it's showing previous contents. If i will press F5 in my
browser then, it will read new data. Maybe i should yous another method
than "Redirect" ? Or, what could be a problem ? Thanks in advance!

--
Tomasz

Sep 29 '06 #1
2 1194
by default the browser and proxy (if one) caches the pages. you can mark
the first page as non-cached, or decorate the redirict url b adding a dummy
arg.

Redirct(myurl + "?x=" + Guid..NewGuid().ToString());

-- bruce (sqlwork.com)
"Tomasz" <to***************@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hello,

I'm a newbie in ASP.NET and i have following problem.

I've got two separate pages. On the first one i have a list of workers,
which is read from mdb database and a button with event
Response.Redirect("SecondPage"); so after i press this button I'm
redirected to the second one.
On the second one there is a simple form and a button which is saving
form contents into the database and redirects me back to the first page
(with redirect method). The problem is when I'm going back to the first
page, this page is not reading data from database (where is new row
added), but it's showing previous contents. If i will press F5 in my
browser then, it will read new data. Maybe i should yous another method
than "Redirect" ? Or, what could be a problem ? Thanks in advance!

--
Tomasz

Sep 29 '06 #2

bruce barker (sqlwork.com) wrote:
by default the browser and proxy (if one) caches the pages. you can mark
the first page as non-cached, or decorate the redirict url b adding a dummy
arg.

Redirct(myurl + "?x=" + Guid..NewGuid().ToString());
I tried this and few other things additionally, but still i can't see
any change. I tried to turn off caching, no i will try again to trace
my code, maybe there is other error ...
--
Tomasz

Oct 2 '06 #3

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

Similar topics

3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
2
by: Kalyani | last post by:
Hi, I have a page with a DropDownList populated with some values.On a button click one of the value in that DropDownList DataSource is removed.But to update the DropDownList contents the page must...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
2
by: Schraalhans Keukenmeester | last post by:
I have a page consisting of three frames. Top frame shows db rows, middle frame shows contents of a file, bottom frame has buttons to change file/row status and/or delete them. The desired...
1
by: Oleg | last post by:
Hi, I'm having a problem with page caching and therefore reusing dropdown box contents. Scenerio: user1 has security to see list of three items(.aspx populates it with three items only) in...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
1
by: Steve S | last post by:
Hey guys, I'm stuck with using a GridBagSizer (wxPython) in a GUI Dialog and am having a frustrating time with refreshing it properly. Essentially, I've got to refresh the contents of the...
1
by: David | last post by:
Hi, Further to my earlier post about using dynamic usercontrols (which I have still yet to solve), I have another problem. I am creating the UC in the page by LoadControl. The page itself...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.