
- Forum
- Programming Talk
- Microsoft .NET
- Disable a button
Disable a button
This is a discussion on Disable a button within the Microsoft .NET forums, part of the Programming Talk category; I have a Save button on a web page. I want to disable the button when clicked, so that the ...
-
Disable a button
I have a Save button on a web page.
I want to disable the button when clicked, so that the user does not click it more than once, as the serevr side code is being processed.
i disabled the button by calling a javascript function -
btnSave.Attributes.Add("onClick","return buttonDisabled();") ;
In the Javascript file i have -
function disableButton()
{
var btnSave = document.getElementById('btnSave') ;
btnSave.disabled = true ;
return true ;
}
since the button gets disabled my server side code(in C#) does not get executed.
thanks a lot for any kind of help
-
Apologies but I seem to have missed what you need help on. Please clarify

-
06-03-2007, 01:57 PM #3
- Join Date
- Mar 2007
- Location
- India, Gujarat
- Answers
- 3
Use Enable Properties
Dear Friends,
Try enable properties of button
Thanks,
Adarsh Patel
-
Visibility of the button can be set to false after the button click
-
Sponsored Ads

Reply With Quote





