AutoPostback

Discussion in 'ASP .Net' started by =?Utf-8?B?Qm9iIFBlZWs=?=, Feb 24, 2006.

  1. I have created a master page with a single asp:button that posts the page
    without page validation.

    On the content page, I have a variety of asp controls including text box,
    drop down list controls and user controls. I also have a single button that
    posts the page with page validation.

    During the development of the page, I have tested the behavior of the
    <Enter> key while in various controls and it did not cause a postback. Now,
    after adding many controls, the <Enter> key now causes a postback with the
    non-validating button's event (the one on the master page).

    I have searched the project for 'autopostback' and it doesn't exist.

    In short, what is causing the <Enter> key to do a postback when the cursor
    is in a control with the autopostback property set to false???? Besides the
    autopostback property of the controls, what effects the result of the user
    pressing the <Enter> key. I do not want the <Enter> key to post back unless
    the focus is on one of the buttons!

    Thanks for any help.
    =?Utf-8?B?Qm9iIFBlZWs=?=, Feb 24, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?Qm9iIFBlZWs=?=

    Bruce Barker Guest

    if there is a form on the page, the default behavior of most browser is to
    do a submit when the enter key, and sending to the server the id of the
    first submit button (IE has some bugs in this area).

    -- bruce (sqlwork.com)


    "Bob Peek" <> wrote in message
    news:...
    >I have created a master page with a single asp:button that posts the page
    > without page validation.
    >
    > On the content page, I have a variety of asp controls including text box,
    > drop down list controls and user controls. I also have a single button
    > that
    > posts the page with page validation.
    >
    > During the development of the page, I have tested the behavior of the
    > <Enter> key while in various controls and it did not cause a postback.
    > Now,
    > after adding many controls, the <Enter> key now causes a postback with the
    > non-validating button's event (the one on the master page).
    >
    > I have searched the project for 'autopostback' and it doesn't exist.
    >
    > In short, what is causing the <Enter> key to do a postback when the cursor
    > is in a control with the autopostback property set to false???? Besides
    > the
    > autopostback property of the controls, what effects the result of the user
    > pressing the <Enter> key. I do not want the <Enter> key to post back
    > unless
    > the focus is on one of the buttons!
    >
    > Thanks for any help.
    Bruce Barker, Feb 25, 2006
    #2
    1. Advertising

  3. Thanks Bruce,

    I guess I just have to live with it.

    "Bruce Barker" wrote:

    > if there is a form on the page, the default behavior of most browser is to
    > do a submit when the enter key, and sending to the server the id of the
    > first submit button (IE has some bugs in this area).
    >
    > -- bruce (sqlwork.com)
    >
    >
    > "Bob Peek" <> wrote in message
    > news:...
    > >I have created a master page with a single asp:button that posts the page
    > > without page validation.
    > >
    > > On the content page, I have a variety of asp controls including text box,
    > > drop down list controls and user controls. I also have a single button
    > > that
    > > posts the page with page validation.
    > >
    > > During the development of the page, I have tested the behavior of the
    > > <Enter> key while in various controls and it did not cause a postback.
    > > Now,
    > > after adding many controls, the <Enter> key now causes a postback with the
    > > non-validating button's event (the one on the master page).
    > >
    > > I have searched the project for 'autopostback' and it doesn't exist.
    > >
    > > In short, what is causing the <Enter> key to do a postback when the cursor
    > > is in a control with the autopostback property set to false???? Besides
    > > the
    > > autopostback property of the controls, what effects the result of the user
    > > pressing the <Enter> key. I do not want the <Enter> key to post back
    > > unless
    > > the focus is on one of the buttons!
    > >
    > > Thanks for any help.

    >
    >
    >
    =?Utf-8?B?Qm9iIFBlZWs=?=, Feb 25, 2006
    #3
    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. huobazi

    Can NOt AutoPostBack for two DDL

    huobazi, Jul 2, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    493
    huobazi
    Jul 2, 2003
  2. huobazi
    Replies:
    1
    Views:
    666
    David Waz...
    Jul 3, 2003
  3. Mira Vizjak

    AutoPostBack

    Mira Vizjak, Jul 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    477
    Mira Vizjak
    Jul 14, 2003
  4. Jesse

    Problem with Autopostback

    Jesse, Jul 17, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    453
    Jesse
    Jul 17, 2003
  5. Domien Holthof

    AutoPostBack question.

    Domien Holthof, Jul 17, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    430
    Marina
    Jul 17, 2003
Loading...

Share This Page