Exforsys

Online Training

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 ...


Go Back   Exforsys > Programming Talk > Microsoft .NET

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2007, 05:58 PM
Junior Member
 
Join Date: Oct 2006
Posts: 4
sansircar is on a distinguished road
Unhappy 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-22-2007, 07:14 PM
Junior Member
 
Join Date: Feb 2007
Posts: 22
JohnDoe is on a distinguished road
Apologies but I seem to have missed what you need help on. Please clarify
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-03-2007, 02:57 PM
Junior Member
 
Join Date: Mar 2007
Location: India, Gujarat
Posts: 5
compad is on a distinguished road
Send a message via Yahoo to compad
Use Enable Properties

Dear Friends,

Try enable properties of button

Thanks,
Adarsh Patel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
change label of one button of journal entry screen mandar_v_d Oracle Apps 1 01-11-2007 02:25 AM
Disable XP Error Reporting Guptha_S Windows 0 12-11-2006 10:37 AM
Disable the button sprsekar Oracle Apps 1 11-18-2006 01:57 PM
Use of Default Button property norman ASP 2 06-17-2006 08:11 PM
Best Practices for Checking Prerequisites Mario T. Lanza Software Patterns 2 09-01-2004 06:51 PM


All times are GMT -4. The time now is 01:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.