I am facing an issue with 2 ASP textboxes for Login and Password. I want to automate the process so that when I enter the password and press enter, it should click the login button. I have tried several approaches found on Google, such as placing them all in a panel, but none seem to work. Can someone provide assistance with this problem?
Thank you.
Password.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + LoginRequest.UniqueID + "').click();return false;}} else {return true}; ");