Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Not Doing Postback

Reply
Thread Tools

Not Doing Postback

 
 
blue
Guest
Posts: n/a
 
      01-26-2004
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


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      01-26-2004
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" <> wrote in message
news:%...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UpdatePanel is doing full postback when it should not TomK ASP .Net Web Controls 2 02-08-2008 09:51 PM
UpdatePanel is doing full postback when it should not TomK ASP .Net 1 02-06-2008 09:37 AM
Page not found when doing postback hphan1229 ASP .Net 1 08-02-2007 08:07 PM
url in cell.innerhtml not doing a postback pradeep ASP .Net Web Controls 1 02-28-2005 05:33 PM
asp:repeater not doing a refresh/postback Scott Lyon ASP .Net 5 10-31-2003 09:09 PM



Advertisments