Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 December 13th, 2003, 09:25 PM
Registered User
 
Join Date: Dec 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Default Buttons - in ASP.NET webforms

I have webform which has a few text boxes and two asp buttons.
When the user hits enter key, the first button's click event is fired. I would like to fire the click event of the second button.
Both of them are asp buttons and not html buttons.

Please help.

Thanks in Advance.

Regards,
Ramesh

 
Old December 17th, 2003, 12:05 AM
Registered User
 
Join Date: Dec 2003
Location: Folsom, CA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Assuming you have a button or imagebutton control called btnNext, place the following code in the Page_Load event.

Page.RegisterHiddenField("__EVENTTARGET", "btnNext");
 
Old August 2nd, 2004, 03:32 AM
Registered User
 
Join Date: Aug 2004
Location: Bucharest, , Romania.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to s_ant
Default

Did this realy work for you? Because I tried and never worked.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET and C# Webforms rtomanio ASP.NET 2.0 Basics 2 September 2nd, 2008 08:58 PM
VS.NET 2003 Webforms jerrylan BOOK: Professional Crystal Reports for VS.NET 3 April 30th, 2005 07:02 PM
multiple Image submit buttons set default to last sam HTML Code Clinic 2 June 30th, 2004 02:33 PM





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