Keypress event in Asp.net
-
u can fire some javascript fnc on key press event. for that u add attributes in code behind eg: TxtEmail1.Attributes.Add("OnKeypress", "javascript:email1check(this);") or u can invoke certain button click events All I ever wanted is what others have.... CrazySanker
-
u can fire some javascript fnc on key press event. for that u add attributes in code behind eg: TxtEmail1.Attributes.Add("OnKeypress", "javascript:email1check(this);") or u can invoke certain button click events All I ever wanted is what others have.... CrazySanker
Can u pls tell me is this the r8 way to handle keypress event:confused: txtUserName.Attributes.Add("OnKeypress", "btnOk_Click()") Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click Showbox("I am here", Msg.Warning, plhMainMenu, "Cancel", , , , , "Client Visit") End Sub
-
Can u pls tell me is this the r8 way to handle keypress event:confused: txtUserName.Attributes.Add("OnKeypress", "btnOk_Click()") Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click Showbox("I am here", Msg.Warning, plhMainMenu, "Cancel", , , , , "Client Visit") End Sub
Nope, the btnOK_Click() funx must be js function...That will be executed at client-side (not server-side as your example) << >>