469,924 Members | 1,408 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

Not Doing Postback

When the user clicks a button on my form, I disable the page
(document.body.disabled = true;) so they can't submit the form multiple
times before the postback occurs. When I do this, it doesn't post back at
all. I also tried just disabling the button itself (btn.disabled = true;)
and that also causes it to not post back.

Is there a way to disable the page and have a postback?

Thanks,

blue
Nov 18 '05 #1
1 1107
The mechanism of postback is driven by client side script. If you disable
the page, postback will never occur, unless you create your own handler (ie,
check and see if it is x dropdown, button, et al) and submit.

I would guess you need to rethink the problem rather than disable the page.
It sounds like validation, or similar, is the real issue. Think through the
use case (you do have use cases?) step by step and figure out what actions
can and cannot happen at each step. You can then build the page to fit these
conditions.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"blue" <bl**@arizona.edu> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
When the user clicks a button on my form, I disable the page
(document.body.disabled = true;) so they can't submit the form multiple
times before the postback occurs. When I do this, it doesn't post back at
all. I also tried just disabling the button itself (btn.disabled = true;) and that also causes it to not post back.

Is there a way to disable the page and have a postback?

Thanks,

blue

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Scott Lyon | last post: by
5 posts views Thread by Joey | last post: by
11 posts views Thread by antonyliu2002 | last post: by
1 post views Thread by Nathan Sokalski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.