473,394 Members | 1,701 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,394 software developers and data experts.

button server onclick not firing

I have a button and a text box. when i press enter on text box i want button
click at servide side shoiul fire. I thin its a default behaviour but its
not happening. Page is posted back but button click event does not fire

Thanks
Feb 1 '06 #1
3 1530
Check out:
http://www.allasp.net/enterkey.aspx

You'll see that the behaviour you are observing is a known behaviour of IE 6
under certain circumstances.

the page also features code to solve the problem.

Cheers,
Karl
--
http://www.openmymind.net/

"Vikram" <aa@aa> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
I have a button and a text box. when i press enter on text box i want
button
click at servide side shoiul fire. I thin its a default behaviour but its
not happening. Page is posted back but button click event does not fire

Thanks

Feb 1 '06 #2
does it work when clicked with mouse.
otherwise check the button event handler. might be something wrong with it.

"Vikram" wrote:
I have a button and a text box. when i press enter on text box i want button
click at servide side shoiul fire. I thin its a default behaviour but its
not happening. Page is posted back but button click event does not fire

Thanks

Feb 2 '06 #3
As adviced before does it fire when the mouse is clicked?
Ajit i had the same issue sometime ago and what you can do is just add an
extra textbox
and hide it it should fire when you hit enter
<INPUT type="text" style="VISIBILITY: hidden;POSITION: absolute">
Hope that heps
Patrick
"Ajit Rajput" <Aj********@discussions.microsoft.com> wrote in message
news:4A**********************************@microsof t.com...
does it work when clicked with mouse.
otherwise check the button event handler. might be something wrong with it.
"Vikram" wrote:
I have a button and a text box. when i press enter on text box i want button click at servide side shoiul fire. I thin its a default behaviour but its not happening. Page is posted back but button click event does not fire

Thanks

Feb 2 '06 #4

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

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
10
by: Steve | last post by:
Hi- I had this nice little wizard application running. It was comprised of several Panel controls initially set w/ their visibility off except for the first one, then as you progress through...
3
by: Patrick Olurotimi Ige | last post by:
Can i have a Button in a Datalist? The button is for posting a form to the the Database FOr example:- <ASP:DataList id="heading0" RepeatLayout="Flow" RepeatDirection="Horizontal" ...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
7
by: rsaffy | last post by:
I am having trouble with my dynamically created button's event handling. I read that the buttons need to be recreated on every trip to the server, but how exactly do you do that when the datagrid...
8
by: SAL | last post by:
Hello, I have a button on a webform that has an OnClick event defined as such: <asp:Button ID="btnSearchByName" runat="server" Text="Search By Name" OnClick="btnSearchByName_Click" Width="152px"...
3
by: Jay | last post by:
I am on the 2.0 framework and have run the c:\windows\microsoft.net \framework\v1.1.4322\aspnet_regiis.exe -c and had no success. About half of the buttons on my webforms are firing and the other...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
2
by: chrisp | last post by:
I have an ASP.NET 2 page with a button that causes a credit card transaction to be authorised. The authorisation procedure may take a few seconds and so I want to prevent the user from clicking the...
23
by: shashi shekhar singh | last post by:
Dear sir, I have a word document file contains text and images, now i have saved it as a web page and wants to display it on browser , using , string str=directory.getfiles("");...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.