473,500 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Submit Form Once

Hi,

I have an asp.net page with a form, when submitted it sends an email and
moves to another page.
I would like to allow only the form to be submitted once, i.e. I don't want
the user to go back and submit again.

What's the best way to do this?
Nov 18 '05 #1
2 1367
First thing is, dont cache the page. When user submit the page just put a
flag in session variable and when he goes back you check for that flag and
disable that submit button. To know how to avoid caching, check out this
article
http://www.extremeexperts.com/Net/FA...ackButton.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Emmanuel" <em******@email.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have an asp.net page with a form, when submitted it sends an email and
moves to another page.
I would like to allow only the form to be submitted once, i.e. I don't want the user to go back and submit again.

What's the best way to do this?

Nov 18 '05 #2
Thanks!

What if i would still want to cache the page, is there another way?
"Saravana" <sa******@sct.co.in> wrote in message
news:I%*****************@news.cpqcorp.net...
First thing is, dont cache the page. When user submit the page just put a
flag in session variable and when he goes back you check for that flag and
disable that submit button. To know how to avoid caching, check out this
article
http://www.extremeexperts.com/Net/FA...ackButton.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Emmanuel" <em******@email.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have an asp.net page with a form, when submitted it sends an email and
moves to another page.
I would like to allow only the form to be submitted once, i.e. I don't

want
the user to go back and submit again.

What's the best way to do this?


Nov 18 '05 #3

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

Similar topics

1
5040
by: David Bradbury | last post by:
Hi On my form, as soon as the user clicks my submit button a message pops up saying "Form processing" as the form submits. This is fine as long as the user only clicks the submit button once....
3
5064
by: Vincent M. | last post by:
Hello, I have a form which allow to submit a file, I'd like to block the submit buton once it has been clicked, so I tried: function SubmitNow(item){ if(item.value=="Please wait") { return...
2
6038
by: tony wong | last post by:
i wish the html to submit the form once it is loaded. what should be the code here (alert("how 's the code here"))? Grateful if you could help me. Thanks a lot. Tony...
4
9885
by: karenmiddleol | last post by:
I have the following form the user enters the From and to period and presses the Submit button and the form fields are cleared once the submit button is pressed. Is there a way I can keep the...
3
2548
by: D. Shane Fowlkes | last post by:
Sorry for the length of this post. I have created a rather complex form which has a header/line item (parent and child records) structure. It's for an intranet. A screenshot can be seen here: ...
3
3137
by: Jeff | last post by:
I have a payment form with a submit button. A large percentage of users double-click the submit button thus submitting their payment information twice. I would like to use javascript to disable...
5
17673
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
1
2545
by: kkuniya | last post by:
Situation : - A form (method : POST, action : itself, onsubmit : alert 'Submit' ) - Got 2 submit button ( 'Save' , 'View') - Got navigation 1|2|3|4 What I want to do : - Once clicked on the...
3
1125
by: dandrew22 via DotNetMonster.com | last post by:
Hi all I'm completely new to ASP.Net and need some help please. I'm doing some client side validation using Javascript. The relevant code is below: <input type="button" value="submit"...
10
6042
by: ljlolel | last post by:
So.. I have a form that submits to an ASP.net site made in C-sharp. The ASP site is not mine, i do not have the server side code. When I submit from my form by pressing the Submit button, I get...
0
7136
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
7182
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
7232
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
5490
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,...
1
4923
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...
0
3110
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...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
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 ...
0
316
bsmnconsultancy
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...

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.