473,383 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

AutoPostback

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.
Feb 24 '06 #1
2 2623
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" <Bo*****@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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.

Feb 25 '06 #2
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" <Bo*****@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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.


Feb 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Susan van Houen | last post by:
Hi All, How do I intercept an autopostback on the client side and prevent it from executing the submit? In classic ASP I used to intercept the on_submit and just return false;
8
by: Matthew Louden | last post by:
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...
4
by: Scott M. | last post by:
If I put RequiredFiledValidators on a page and set them up with corresponding TextBoxes everything works just fine. If I add a DropDownList and set its AutoPostBack to True, I am able to post data...
6
by: Sunil | last post by:
Dear All I am a bit confused about AutoPost Back. My concept about AutoPostBack is that If AutoPostBack i "TRUE" for a Web Form the Web Form Goes back to the server and displays a fresh copy of...
0
by: Scott | last post by:
Hi. I'm having some problems with AutoPostBack in my asp.net pages running on Windows 2003/IIS 6. The pages are really simple. For example, one of them contains two dropDownLists. The firstdrop...
2
by: Tom Edelbrok | last post by:
Question: Why does a button event (ie: Button1_Click) get executed on the first click for a textbox control which has 'autopostback=false', but doesn't get executed until a second click when...
3
by: Brad | last post by:
The first text on my form is a numeric field. I have a javascript that runs on this field for onkeyup (validate the key strokes and modifies fields on the screen) but when I do this and have the...
2
by: rn5a | last post by:
Assume that a user control has a TextBox (Page1.ascx) <asp:TextBox ID="txtName" runat="server"/> I am encapsulating the above user control in a ASPX page named Page1.aspx i.e. the ASPX page...
0
by: andy | last post by:
Hi, I have a form uses several dropdownlists to narrow a set of criteria. ( This is in turn used to control what is shown on a gridview. ) With each, the user selects an entry and then the next...
6
by: Peter | last post by:
ASP.NET 2.0 Visual Studio 2008 I have the following code and when the textbox displays and I press Enter while in the text box I get AutoPostBack, how do I stop AutoPostBack? TextBox txt =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.