How can you add a click event in the text box, C# , asp.net
-
I want a dropdown menu to be visible only when i click on the text box. Is this possible? I can find no such click event in asp.net
-
I want a dropdown menu to be visible only when i click on the text box. Is this possible? I can find no such click event in asp.net
Think about this for a while and consider the postback model. You'd either have to postback to the server every time you clicked in the textbox which would cause the whole page to be refreshed, which would be a real pain for the user, or you have to find an alternative mechanism. Is this giving you a hint? Think of javascript - and it's not a click event you want to consider, it's the focus event.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
I want a dropdown menu to be visible only when i click on the text box. Is this possible? I can find no such click event in asp.net
YOUR_TEXTBOX_ID.Attributes.Add("onclick","Visible(true);"); function Visible(isVisible) { $get('your_dropdown_clientid').visible = isVisible; }