why some controls must set autopostback property to be true??

Discussion in 'ASP .Net' started by Matthew Louden, Nov 18, 2003.

  1. why need to set autopostback property to be true?? I know autopostback event
    means to send the form to the server automatically.

    I tried checkbox, checkbox list, radio button, and radio button list, and
    they all need to set autopostback property to be true, in order to make the
    event of the control fires.

    I know this is the must, but I dont know why. Please advise!

    Thanks!
    Matthew Louden, Nov 18, 2003
    #1
    1. Advertising

  2. Matthew Louden

    bruce barker Guest

    only submit buttons (asp image and command buttons) do a postback on theri
    own. all other controls need call a javascript routine that does the actual
    postback.

    1) if client scripting is turned off (security setting), these controls will
    not postback. you need to be aware that autopostback is just a hint, not a
    guarantee.

    2) the postback is very costly, so the default is none, though you could
    make a case that the IDE should set if you attach an event handler.


    -- bruce

    "Matthew Louden" <> wrote in message
    news:...
    > why need to set autopostback property to be true?? I know autopostback

    event
    > means to send the form to the server automatically.
    >
    > I tried checkbox, checkbox list, radio button, and radio button list, and
    > they all need to set autopostback property to be true, in order to make

    the
    > event of the control fires.
    >
    > I know this is the must, but I dont know why. Please advise!
    >
    > Thanks!
    >
    >
    >
    >
    bruce barker, Nov 18, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Wier
    Replies:
    0
    Views:
    619
    David Wier
    Aug 27, 2003
  2. Matthew Louden
    Replies:
    8
    Views:
    558
    John Saunders
    Nov 19, 2003
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,748
    Smokey Grindel
    Dec 2, 2006
  4. bdb112
    Replies:
    45
    Views:
    1,316
    jazbees
    Apr 29, 2009
  5. Matthew Louden

    why some controls must set autopostback property to be true??

    Matthew Louden, Nov 18, 2003, in forum: ASP .Net Web Controls
    Replies:
    7
    Views:
    199
    John Saunders
    Nov 19, 2003
Loading...

Share This Page