AutoPostback

G

Guest

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.
 
B

Bruce Barker

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top