472,374 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Is there a way to test a postback from refresh and back button+resubmit? thanks!

This troubles me for a while. When user click back button and click submit
button, I get the same data as user click refresh(it resubmit the page too).
Is there a way to tell the difference?

thanks.
Jul 21 '05 #1
1 1423
In SQL Server I use a stored procedure with an output param, and return the
PK from the record to the webform, populating a textbox. If the textbox
contains an value then I bypass the code to add the data.

"davidw" <da****@affinisys.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
This troubles me for a while. When user click back button and click submit
button, I get the same data as user click refresh(it resubmit the page too). Is there a way to tell the difference?

thanks.

Jul 21 '05 #2

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

Similar topics

1
by: shawn | last post by:
I'm editing existing code, where the user selects an item on Page1.asp and clicks submit. Page1 then calls Page2.asp which subsequently runs a query to validate the data selected (passed) from...
13
by: Botao | last post by:
Hi, Every Guru, I'd like to put a button on a page. When clicking the button, the table below it gets selected so the user can do Ctrl C to copy the entire table without using the mouse to...
1
by: blue | last post by:
When the user clicks a button on my form, I disable the page (document.body.disabled = true;) so they can't submit the form multiple times before the postback occurs. When I do this, it doesn't...
4
by: Jeremy | last post by:
I have an ASPX page with a bunch of System.Web.UI.WebControls.Button controls on it. By default, clicking on any of these causes a Postback. I'd like to have it so that for a couple of these...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
3
by: Dave Adler | last post by:
Is there any way to retain the value of an HtmlInputFile control through a postback? I do some server side validation on the page when it is submitted and if an error occurs on the page the...
1
by: davidw | last post by:
This troubles me for a while. When user click back button and click submit button, I get the same data as user click refresh(it resubmit the page too). Is there a way to tell the difference? ...
2
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new...
6
by: Jonathan Wood | last post by:
I'm getting into the habit of checking IsPostBack in my Form_Load handler and not updating the page if it is a postback. However, I notice that if I hit my browser's refresh button, the page...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.