I cant seem to find an event that is fired when a user clicks on an ASP TextBox. Is there an event that is fired? Is the only way to handle this through javascript? If possible, Id like to do it in the code behind.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no OnClick event raised on the server side when the text element is clicked. You can add an
onclickhandler on javascript an issue a postback to the page. For example:And then something like:
On the server-side: