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


Top 5 Contributors of the Month
david stephan

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?


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

hi,
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);
}
</Script>



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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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