473,698 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how disable submitbutton with asp

JML

Hi guys,
I need HELP
I am trying to disable submit button after user submits the form.

thanks in advance


--
Jamal
Mpcparts.com / Milwaukeepc
414-3320874-143
414-332-1368
3900 N. Sherburn PL.
Shorewood,WI,53 211

Jul 19 '05 #1
5 4933
You can't do it with ASP in the way that you mean, since ASP runs on the
server. To just disable the submit button, you can use client side code as
such:

<form onsubmit="this. NameOfSubmitBut ton.disabled=tr ue;"

I don't know about browser compatibility of that though. INstead of trying
to disable the submit button, you could address the reason that you want to
do this and come up with a server-side solution. Like, have your code
handle duplicate submissions.

Ray at work
"JML" <ce*****@milwau keepc.com> wrote in message
news:3f******** *************** @news.twtelecom .net...

Hi guys,
I need HELP
I am trying to disable submit button after user submits the form.

thanks in advance


--
Jamal
Mpcparts.com / Milwaukeepc
414-3320874-143
414-332-1368
3900 N. Sherburn PL.
Shorewood,WI,53 211
Jul 19 '05 #2
Good point. My follow-up would be, can you point me to some sample code for
handling double-submissions on the server side?
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eq******** ******@TK2MSFTN GP09.phx.gbl...
You can't do it with ASP in the way that you mean, since ASP runs on the
server. To just disable the submit button, you can use client side code as such:

<form onsubmit="this. NameOfSubmitBut ton.disabled=tr ue;"

I don't know about browser compatibility of that though. INstead of trying to disable the submit button, you could address the reason that you want to do this and come up with a server-side solution. Like, have your code
handle duplicate submissions.

Ray at work
"JML" <ce*****@milwau keepc.com> wrote in message
news:3f******** *************** @news.twtelecom .net...

Hi guys,
I need HELP
I am trying to disable submit button after user submits the form.

thanks in advance


--
Jamal
Mpcparts.com / Milwaukeepc
414-3320874-143
414-332-1368
3900 N. Sherburn PL.
Shorewood,WI,53 211

Jul 19 '05 #3
Well, it all depends on what you're trying to avoid. What kind of data is
being submitted, and what do you want to prevent duplicates of? And how do
you define something as a duplicate? Like, if I entered Ray Costanzo into
your form, and then someone else with the same name also fills out your
form, that would not be a duplicate if we are different people. So, first
decide how you define duplicate entries, or double submissions.

Ray at work

"middletree " <mi********@hto mail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Good point. My follow-up would be, can you point me to some sample code for handling double-submissions on the server side?
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eq******** ******@TK2MSFTN GP09.phx.gbl...
You can't do it with ASP in the way that you mean, since ASP runs on the
server. To just disable the submit button, you can use client side code

as
such:

<form onsubmit="this. NameOfSubmitBut ton.disabled=tr ue;"

I don't know about browser compatibility of that though. INstead of

trying
to disable the submit button, you could address the reason that you want

to
do this and come up with a server-side solution. Like, have your code
handle duplicate submissions.

Ray at work
"JML" <ce*****@milwau keepc.com> wrote in message
news:3f******** *************** @news.twtelecom .net...

Hi guys,
I need HELP
I am trying to disable submit button after user submits the form.

thanks in advance


--
Jamal
Mpcparts.com / Milwaukeepc
414-3320874-143
414-332-1368
3900 N. Sherburn PL.
Shorewood,WI,53 211


Jul 19 '05 #4
I am sorry I don't know how to make a client side script. Is there any
chance you can give me more information about this. Or could you direct
me to the resource.

thanks in advance.
JML


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5
http://google.com/search?q=disable+submit+button

Ray at work

"Jamal AnJame" <ce*****@milwau keepc.com> wrote in message
news:ew******** ********@TK2MSF TNGP10.phx.gbl. ..
I am sorry I don't know how to make a client side script. Is there any
chance you can give me more information about this. Or could you direct
me to the resource.

thanks in advance.
JML


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #6

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

Similar topics

5
5980
by: Bob Bedford | last post by:
I create checkboxes using datas from a database (with PHP). I store all values in an array, as I must pass this value like a Form value. Now, in some cases, when a checkbox is selected, I must disactivate other checkboxes. How can I do this ? here is the code:
6
3160
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled href="#">bahbahbah</a> Does not work, as it is still clickable. It only changes the color to grey.
14
7184
by: Sinity | last post by:
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response. I tried to do this by adding a java script for the button. But, useless.. Please help! Thank you
7
1857
by: nicholas | last post by:
how can I disable a button when the user clicks on it and the webform is validated. I want this to prevent the user from clicking twice and by this submitting the form twice. Thank you. This is what I tried, but it does nothing:
4
3121
by: Chris | last post by:
I have an asp.net page say page1.aspx. The form in html code is <form id = "Form1"> And i want to disable all the fields of the form after some code steps. I had created a javascript funct: function disable() { alert("Forms length is :" + Form1.length); for (i = 0; i < Form1.length; i++) { var formElement = Form1.elements;
0
1803
by: Ahmad Jalil Qarshi | last post by:
Hi! I have a problem while developing some webpages.The Problem is that:- How We Can Disable The Controls Of One Web Form From Other Web Form In Asp.net? Explanation:- There Should Be Two Web Form,Web Form1.aspx and Web Form2.aspx,Now From Web Form1.aspx When I Click One Button (Disable), Then Web Form2.aspx Buttons
4
14226
by: Phoe6 | last post by:
Hi all, I am trying to disable the NIC card (and other cards) enabled in my machine to test diagnostics on that card. I am trying to disable it programmatic using python. I checked python wmi and i could not find ways to disable/enable, (listing is however, possible). Where should I look for to enable/disable devices in python. Thanks,
0
2161
by: sainiranji | last post by:
Hi All I have diffrent categories in diffrrent logging purpose and all are working fine...but now my requirment is to disable all at once . The below are change i did for disable all logges ! Observe log4j parsing this file log4j.debug=false
8
3713
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? ----------------------------------------------------------------------- The oncontextmenu intrinsic event is the only safe and reliable method. Of the other approaches often presented, most depend on an alert box interrupting the process and rarely work. Note that oncontextmenu is a non-standard event and is not...
0
8683
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, 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...
0
8611
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,...
1
8904
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,...
0
7741
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, 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...
1
6531
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.