Re: add code to all button on my asp.net website?

2011-04-20 Thread David Connors
On Wed, Apr 20, 2011 at 11:24 PM, Jamie Surman wrote: > IMHO the value in doing this on the client rather than server side is the > reduction in traffic between client and server. > You can do it on the client-side if you wish but you ALSO have to do it on the server-side for the reason's Richard

Re: add code to all button on my asp.net website?

2011-04-20 Thread Jamie Surman
: ozDotNet Sent: Wed, 20 April, 2011 13:42:59 Subject: Re: add code to all button on my asp.net website? Anthony I presume you're trying to disable the button so a user cannot click twice. This methodology has been discussed previously and, assuming that's the case, you're looking at

Re: add code to all button on my asp.net website?

2011-04-20 Thread Richard Carde
Anthony I presume you're trying to disable the button so a user cannot click twice. This methodology has been discussed previously and, assuming that's the case, you're looking at the problem the wrong way around. This is similar to the 'how do I disable the back button' question. What do you

RE: add code to all button on my asp.net website?

2011-04-18 Thread Anthony
: add code to all button on my asp.net website? I was thinking of using jquery to modify the attribute on the actual html tag? On Tue, Apr 19, 2011 at 2:09 PM, Anthony wrote: I'm pretty sure jquery will override the event. -Original Message- From: ozdotnet-boun...@ozdotne

Re: add code to all button on my asp.net website?

2011-04-18 Thread Michael Ridland
zdotnet.com] > On Behalf Of DotNet Dude > Sent: Tuesday, 19 April 2011 1:46 PM > To: ozDotNet > Subject: Re: add code to all button on my asp.net website? > > i don't think it'd be actually overriding the event handler, it is > just appending so should be ok >

RE: add code to all button on my asp.net website?

2011-04-18 Thread Anthony
I'm pretty sure jquery will override the event. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of DotNet Dude Sent: Tuesday, 19 April 2011 1:46 PM To: ozDotNet Subject: Re: add code to all button on my asp.net website? i

Re: add code to all button on my asp.net website?

2011-04-18 Thread DotNet Dude
alidation etc is not > executed > > > > From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] > On Behalf Of Michael Ridland > Sent: Tuesday, 19 April 2011 12:38 PM > To: ozDotNet > Subject: Re: add code to all button on my asp.net website? >

RE: add code to all button on my asp.net website?

2011-04-18 Thread Anthony
:38 PM To: ozDotNet Subject: Re: add code to all button on my asp.net website? You could do it with jQuery Very Easily. On Tue, Apr 19, 2011 at 12:28 PM, Anthony wrote: I want add the following to all button on my website i.e. button.Attributes.Add("on

Re: add code to all button on my asp.net website?

2011-04-18 Thread Michael Ridland
You could do it with jQuery Very Easily. On Tue, Apr 19, 2011 at 12:28 PM, Anthony wrote: > I want add the following to all button on my website i.e. > button.Attributes.Add("onclick", > ClientScript.GetPostBackEventReference(button, "") + ";this.value='Processing > Credit Card Payment...'

add code to all button on my asp.net website?

2011-04-18 Thread Anthony
I want add the following to all button on my website i.e. button.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(button, "") + ";this.value='Processing Credit Card Payment...';this.disabled = true;") Is there an easy to automatically apply this to all buttons? regards Ant