Articles   Dev Forums   Personalize   Favorites   Member Login   ASP Hosting      Active Users:  160
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Thursday, May 15, 2008
Home
Articles & Samples
ASP Hosting
Dev Search
Dev Forum
Add Your Articles
Add a Listing
Sample Chapters
Directory Feed
Link to US
Contact

Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts

ESET
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > ASP > Tips & Tricks
Disable ASP Button on Submit and capture the PostBack OnClick Event       
Total Hits: 519  |  Today: 0 Author: chris lasater       Rating:  
Read Reviews | Write Review |              Your Rating: 

This article describes how to disable an ASP button on click to prevent multiple clicks and still fire the button event on the server. This is a real simple solution that a colleague of mine Harpreet Chawla figured out. Just a real simple fix. Just add the event to the button attributes for the onclick event. It disables via client script the button, then returns the control to the Server button event through the GetPostBackEventReference method, which:
'Obtains a reference to a client-side script function that causes, when invoked, the server to post back to the page. This method also passes a parameter to the server control that performs ..

What's New at DevASP
03/22  ASP.NET AJAX Control Development
03/22  ASP.NET AJAX meets Virtual Earth ..
03/22  ASP.NET AJAX meets Virtual Earth ..
02/22  Building AJAX scroller control us..
02/22  Dirty Panel Extender (ASP.NET AJA..
02/22  A Stoppable Timer Control for ASP..
02/22  flickr Spell Extender Control for..
02/22  AJAX AutoComplete/AutoSuggest Tex..
02/22  AJAX Multi-Task Indicator
02/22  Professional file uploads with th..
02/22  An Ajax image list control to man..
02/22  An information box control to dis..
02/22  MultiUpload, a smarter file uploa..
02/22  Grid Live Refresh
02/22  ASP.NET AJAX Extender for multico..
02/22  Integrating AJAX
02/22  Troubleshooting Partial Rendering..
02/22  Ajaxion - Ajax without javascript..
02/22  ASP.NET Validation using Ajax
02/22  Using Associative Arrays for Clie..
Latest Posts at Dev Forums
I wanna create a log file
Method to automatically delete a datab..
example of editing in DataGrid and Def..
flash+combobox+access
Any Free HTML to PDF converter library..
Any Free HTML to PDF converter library..
mod_rewrite
online leave system
Error at CDONTS.NewMail
ASp.net https problem with firefox
CDONTS NewMail Object
How to reduce the processing time of S..
searching and paging
RegExp Problem
Transparent Encryption
Transparent Encryption
text search within dynamic file
Commit and Rollback in ASP with JAVASC..
how to build db for using in listboxes..
asp and xml packets

DevASP - Privacy - Disclaimer
Copyright © 2008 DevASP.com