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
: 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
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
: 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
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
>
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
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?
>
: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
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...'
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
10 matches
Mail list logo