| | |
please anybody help to solve keydown event for enter button problem
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2006
Posts: 12
Reputation:
Solved Threads: 0
Hi,
I am working in asp.net with C# web application, i have used one textbox and image button for search
funtion, i have created one user control for this, but after i have entered value in textbox, i have pressed the
button, its not at all working, if i will use mouse i can able to search values, how to enable to enter key at
keydown event of textbox, the following script i have used ,
function Buttonfocus()
{
if(event.which || event.keyCode)
{
if ((event.which == 13) || (event.keyCode == 13) || (event.which == 10) || (event.keyCode == 10))
{
document.getElementById("go").click();
return false;
}
}
else
{
return true;
}
}
Please anybody to help me solve this problem in my application, advanced thanks for any reply.
Thanks.
I am working in asp.net with C# web application, i have used one textbox and image button for search
funtion, i have created one user control for this, but after i have entered value in textbox, i have pressed the
button, its not at all working, if i will use mouse i can able to search values, how to enable to enter key at
keydown event of textbox, the following script i have used ,
function Buttonfocus()
{
if(event.which || event.keyCode)
{
if ((event.which == 13) || (event.keyCode == 13) || (event.which == 10) || (event.keyCode == 10))
{
document.getElementById("go").click();
return false;
}
}
else
{
return true;
}
}
Please anybody to help me solve this problem in my application, advanced thanks for any reply.
Thanks.
![]() |
Similar Threads
- Back button problem with $Sessions and GET (PHP)
- Passing value of string from one button click event to another (ASP.NET)
- Word count help. (C++)
- 2 questions: making a program wait, simulating the enter button (C#)
- [MERGED]can anybody help me with this problem; snake game (Java)
- MERGED: Deleting duplicates in an array (plz help me out!!!!!!!) (C)
- Enter doesn't execute button.click (ASP.NET)
Other Threads in the HTML and CSS Forum
- Previous Thread: how do i write the code for taking out a hard copy of the web page
- Next Thread: Autosize iframe not refreshing to top of page.
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





