Not Doing Postback

  • Thread starter Thread starter blue
  • Start date Start date
B

blue

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
 
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!
**********************************************************************
 
Back
Top