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

key press event in asp.net

my code in aspx page is like this.but it gives error "Microsoft jscript error:object expected"


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>

<script type="text/javascript" language="js">

$(function()

{

$("input[type=text]").keypress(function(){

alert("Wow; Its Work!.")



});

});

</script>
Jun 4 '14 #1
0 1065

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mukesh | last post by:
Hi I have a datagrid in which i want to capture the key press event and find which row i am in. Tried with the key press event provided by datagrid, but it does not fire. What could be wrong ...
3
by: birarai | last post by:
How do i get the 'keypress' event to capture only the 'enter' key event? The 'keypress' event captures all key press events. input.addEventListener('keypress', sendButtonPressed, true); ...
1
by: donald | last post by:
I got a ASP.net text box called textbox1 and a label called label1. When a key is press in a text box i want it to up date the label with what is in the textbox. Label1.Text = TextBox1.Text; ...
3
by: Kürşat | last post by:
Hi, Is it possible to know whether a keyboard message is generated by a phisical key press or an application. If possible, how? Thanks in advance.
6
by: salo | last post by:
Can anybody say me for writing javascript code for textbox key press event such a way that it should allow only alphabets,dot and spaces
10
by: ofiras | last post by:
Hii, I saw a lot of programs, that can be in tray (in the bottom right corner), and they can get Key Press event although they are not in focus. Is there a way to do it in C# windows application?...
3
by: fieldling | last post by:
I've got a command button on a form that I would also like to work if I press, for example, F5. (Sounds pointless having a command button I know but there you go). I've tried using the On Key...
1
by: Sendil kumar | last post by:
When I do a Ctrl-C(copy) on a text, the text was not copied. By narrowing down the problem I found that VC++ message map is not capturing the Ctrl-C key press event(Only captures the first key press,...
7
by: thomask | last post by:
Hello my friends , How to implement key press event for checking whether the value entered in the text box is integer.(ie if we press any alphabetic letter in the text box, at the key press it...
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: 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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.