Go Back   Velocity Reviews > General Computer Discussion > General Help Related Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

General Help Related Topics - Disable ASP Button in a Datagrid

 
Thread Tools Search this Thread
Old 08-02-2006, 03:08 AM   #1
Default Disable ASP Button in a Datagrid


Hi all,

I am trying to restrict users from clicking on a submit button more then once in a datagrid. I have found code on the internet which disables a button with post back, so once it is clicked, it is disabled and an event postback is sent to fire off the remaining processes.

The code i tried this with is (put in the OnInit section):
aButton.Attributes.Add("onclick","javascript:this. disabled=true;" + this.GetPostBackEventReference(aButton));
Which works fine with a button...

When i try to implement this into a Datagrid, the closest result i have achieved is to have the whole datagrid disabled but then the processes wont fire off...

Please help if you can...

Thanks in advance Code Gurus

Chris


ChrisClayko
ChrisClayko is offline   Reply With Quote
Reply

« - | Vb.net notes »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading 24,000 rows into C# .net Datagrid Kagu Software 0 03-10-2009 06:51 PM
RadioButtonList in a DataGrid sathyanarayanan_v04 Software 0 06-25-2007 08:06 PM
How do find out if a button was clicked before the textchanged event of textbox fires Jack General Help Related Topics 0 10-27-2006 10:19 AM
Re: Faulty PC power button WinXP_Powered A+ Certification 5 03-09-2006 07:51 AM
Re: Faulty PC power button Christopher Range A+ Certification 0 02-25-2006 12:02 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46