Wednesday, March 21, 2012

HTML Button running at=server

Hi
I have a HTML button that can be accessed server-side too - the only problem
is when the button is disabled in the client (via onclick="this.disabled=tru
e")
it doesn't reflect this when a post-back occurs.
Any ideas?
Thanks
KevAny ideas about what? Client side changes simply are not sent back the
server. If you want it disabled on the server, you have to disable it on
the server, or do some hack like set some hidden fields that indicate your
state.
"Kevin Lawrence" <spamthis@.spam.com> wrote in message
news:3a030fc3eb1a8c7f63317398a0a@.news.rmplc.co.uk...
> Hi
> I have a HTML button that can be accessed server-side too - the only
> problem is when the button is disabled in the client (via
> onclick="this.disabled=true") it doesn't reflect this when a post-back
> occurs.
> Any ideas?
> Thanks
> Kev
>
> Any ideas about what?
Any ideas about how I can work around it...
Client side changes simply are not sent back
> the server. If you want it disabled on the server, you have to
> disable it on the server, or do some hack like set some hidden fields
> that indicate your state.
Well is there a way I can use a server control and NOT have it post back?
I hate having to work around evey god-damn flaw in web dev.
Kev

No comments:

Post a Comment