.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

how to find form keypress value

Posted By: krishana singh     Posted Date: December 22, 2010    Points:2   Category :ASP.Net
my problem
how to get form keypress value?

Author: Mahesh             
Posted Date: March 18, 2011     Points: 20   

you can use javascript to get keypress value as below,

<asp:TextBox ID="TextBox1" runat="server" onkeypress= "GetKeyPress()"></asp:TextBox>

<Script language="javascript">
function GetKeyPress()
alert("you Pressed " + event.keyCode);

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend