Hi all,
I have some pages where I need to delete/update database
records. Everything is fine until I hit the refresh button
on the browser (IE). This will cause the pages to repeat
the last action, which is deleting/updating the records
that have been already deleted/updated. Is there any way
to get around this beside redirecting to another page?
Thanks. 4 1230
JN,
What about checking if that record still exists before trying to delete it?
If it updates a second time is that a real problem?
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"JN" <JN@discussions .microsoft.com> wrote in message
news:02******** *************** *****@phx.gbl.. . Hi all,
I have some pages where I need to delete/update database records. Everything is fine until I hit the refresh button on the browser (IE). This will cause the pages to repeat the last action, which is deleting/updating the records that have been already deleted/updated. Is there any way to get around this beside redirecting to another page?
Thanks.
Yep. Redirect to the same page.
Use Resone.Redirect (Request.RawUrl );
George.
"JN" <JN@discussions .microsoft.com> wrote in message
news:02******** *************** *****@phx.gbl.. . Hi all,
I have some pages where I need to delete/update database records. Everything is fine until I hit the refresh button on the browser (IE). This will cause the pages to repeat the last action, which is deleting/updating the records that have been already deleted/updated. Is there any way to get around this beside redirecting to another page?
Thanks.
well, what I meant by updating was adding, editting
records, and I certainly don't want duplicate records in
my database.
As for delete, yes, I did check the records before
deleting, but well, I would like to have a solution in
general for all update purposes, not just for delete. -----Original Message----- JN,
What about checking if that record still exists before
trying to delete it? If it updates a second time is that a real problem?
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"JN" <JN@discussions .microsoft.com> wrote in message news:02******* *************** ******@phx.gbl. .. Hi all,
I have some pages where I need to delete/update database records. Everything is fine until I hit the refresh
button on the browser (IE). This will cause the pages to repeat the last action, which is deleting/updating the records that have been already deleted/updated. Is there any way to get around this beside redirecting to another page?
Thanks.
.
I see. Thanks, George. -----Original Message----- Yep. Redirect to the same page. Use Resone.Redirect (Request.RawUrl );
George.
"JN" <JN@discussions .microsoft.com> wrote in message news:02******* *************** ******@phx.gbl. .. Hi all,
I have some pages where I need to delete/update database records. Everything is fine until I hit the refresh
button on the browser (IE). This will cause the pages to repeat the last action, which is deleting/updating the records that have been already deleted/updated. Is there any way to get around this beside redirecting to another page?
Thanks.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bernard André |
last post by:
Hi All,
context:
I am using Access 97 tablkes with VB.
I can see records in the MDB, using Adodc and datagrid.
No problem.
But when doing:
rsprivate.AddNew
rsprivate!For = rsusers!identification
rsprivate!Receivedon = ladate
|
by: sentinel |
last post by:
Hello,
I'm having problems refreshing a main window, and am not sure really
whether the solution will be Javascript or PHP related.
Firstly, I have a main file that calls a pop-up box which enables
comments to be made about certain images on the page. The pop-up makes
a connection to a MySQL database and the existing comments are put
into a PHP array and echoed to the screen.
|
by: A.Translator |
last post by:
I have been struggling with a page that is based on a table structure
(because that is all I am feeling comfortable with at the moment) styled
with css.
One of the problems I run in to is Opera (Opera 7 in my case).
The weird thing is: viewing the page through Opera's eyes the first time
around is OK, but after refreshing, the page gets messed up badly.
I will look into the cause of the mess, but for now am really curious:
what does...
|
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...
I am trying to write a webpage in Javascript. The page loads with three
frames, a top, left and right frame.
Depending on the users actions the background page rewrites the code for the
relevant frames.
|
by: msnews |
last post by:
Hi --
I'm very, very new to ASP.Net, and I've been trying for several days to
figure out how to update a datagrid AND refresh it on the client side so
that the page doesn't refresh. I've torn my code apart over and over each
time I tried what I thought would be the code that would solve my problem.
Maybe I'm going down the completely wrong path here. Essentially,
here is an explanation of my ASP.NET webform application and what I
want...
| |
by: Scott Tilton |
last post by:
I am having a terrible time getting this to work. I am hoping someone out
there can help me with very specific code examples. I am trying to get the
linked tables in my Access 97 database to be updated whenever the database
opens. I need to have them updated based on an INI file that resides in the
same directory as the current database.
I do not need or want the ability to open a dialog box to pick the location.
I simply want it to...
|
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 information about the item.
On the html of the datagrid I have the following:
OnItemCommand="Grid_CartCommand" OnItemCreated="DataGrid_ItemCreated".
My VB functions are the following:
Sub DataGrid_ItemCreated(ByVal Sender As Object, ByVal e As...
|
by: sean.hpr |
last post by:
Hi all-
I am a vb2005 newb so apologies in advance. Essentially I am having
some problems with data refreshing on some of my forms.
Background:
I have created a project containing a few forms. The main form is
linked to a data feed which is constantly refreshing data as it is
available (it checks automatically and is updating a few times per
second). The other forms are essentially taking this data and
|
by: chimambo |
last post by:
Hi all,
I have a problem with maintaining data without refreshing manually in
my system. I have a system which carries data across several pages.
But if a user wants to go back to the previous pages, he is asked to
refresh at each stage, which is inconvenience. I want to be able to
maintain the data without refreshing when a user presses a back
button.
Thanking you in anticipation.
|
by: honey99 |
last post by:
Hi!
I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window will open.My problem is the pop-up window and the parent window has same combobox.if i add data through html form in pop-up window(Ex2.jsp) it enters the combobox...but the data in the combobox of parent window(Ex1.jsp) is entering only when i refresh...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |