Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2004, 06:34 AM
Authorized User
 
Join Date: Nov 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulate a double click? chobo2 C# 5 November 10th, 2007 06:15 AM
imagebutton click handling timtomtomkat ASP.NET 2.0 Basics 3 May 23rd, 2007 06:52 AM
imagebutton click handling timtomtomkat ASP.NET 2.0 Professional 0 May 22nd, 2007 04:53 PM
ImageButton wont fire event Moonie112 ASP.NET 1.0 and 1.1 Basics 1 February 11th, 2006 01:01 PM
Click Event dkr72 C# 3 December 8th, 2004 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.