Simulate an ImageButton Click Event
Hi,
I have this requirement in one of my web pages to simulate an imagebutton click event. The requirement is like this - When the user hits the Enter Key, one of the imagebutton's click event should fire. Currently on keydown of the Enter key, the submit button is pressed. But when the cursor focus is on one of a particular text box and when the Enter Key is pressed, the ImageButton control's click event should be fired.
I'm successful until capturing the event and passing an appropriate flag to the page load from the client side. But am not able to proceed further in terms of simulating a click event of the imagebutton control on the server side.
Can any one guide me on how to achieve this. I hope am clear with my requirements. Thanks for replies.
Praveen
|