Enable a button via javascript with PostBackUrl set -> the postbackurl doesn't work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabio Mastria

    Enable a button via javascript with PostBackUrl set -> the postbackurl doesn't work

    Why a button enabled via javascript don't post to a page to the url set in
    PostBackUrl property?

    thank you all
    Fabio

  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Enable a button via javascript with PostBackUrl set -> the postbac

    dpends on how you are enabling the control. if you are using a PostbackUrl,
    this is done in javascript by setting the button's onclick event to
    WebForm_DoPostB ackWithOptions. one of the args is the postback url. this
    function updates the action, does a form submit and cancels the buttons event.

    view source to see what javascript is on the button's onclick (maybe you
    defined an action that prevents the proper behavior).


    -- bruce (sqlwork.com)


    "Fabio Mastria" wrote:
    Why a button enabled via javascript don't post to a page to the url set in
    PostBackUrl property?
    >
    thank you all
    Fabio
    >
    >

    Comment

    • rose

      #3
      Re: Enable a button via javascript with PostBackUrl set -> thepostbackurl doesn't work

      It might be because in the javascript code, you have set the return
      statement to false. i.e. return false;
      If it is so, the button will not postback

      Comment

      Working...