asp.net - Handle Enter Key on website -


When I enter my login form, the search form at the top of my website runs instead, I'm trying to handle but I'm receiving a missingmemberexception.

  Protected Sub Page_Load (ByVal Sender as Object, ByVal as System.EventArgs) Dim getButton as new findbuttonControl Dim vButton as ObjectDim Get New as password VPassword = getPassword.getGrandChildValue (Me.LoginView1.Controls, "Login1", "password") VPassword as search control dial vPassword object vButton = getButton.getGrandChildValue (Me.LoginView1.Controls, "Login1", "LoginButton"). Attributes.Add ("onkeydown", "if (event.which = event.keyCode) {if ((event.which == 13) || (event.keyCode == 13) {document.getElementById ('" + VButton + "'). Click (); Return back;}} and {Return};") End of  

Check out the new Aspiknet 2.0 properties.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -