Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 May 31st, 2006, 11:53 PM
Authorized User
 
Join Date: Jan 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default make a particular (image)button on a web form fire

I need a way to make a particular (image)button on a web form fire when the user presses the return key.

Thanks & Regards
Rajni

 
Old June 1st, 2006, 07:58 AM
Authorized User
 
Join Date: Oct 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your button is submit button that button click will fire when you press return key

---------------------------------------------
Software professional from Bangalore,INDIA
 
Old June 1st, 2006, 11:10 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

You can also create an image button WithEvents:
'Declare it
 Protected WithEvents btnInventory As ImageButton

'aspx syntax
<asp:ImageButton ID="btnInventory" BorderWidth="0" ImageUrl="/images/icons/xls.gif" Width="16" Height="16" ImageAlign="AbsMiddle" Runat="server" />

'Then create a sub to handle the event
Sub [subname](ByVal s As Object, ByVal e As ImageClickEventArgs) Handles btnInventory.Click
'Program the action required
End Sub






Similar Threads
Thread Thread Starter Forum Replies Last Post
Map image or make graphic button dvukovic VB How-To 2 May 19th, 2007 11:45 PM
How to make setup web form in vs.net2005 Curly General .NET 2 June 5th, 2006 01:00 AM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Web image on form deagio Access 0 January 12th, 2005 06:28 PM
Can't fire button event more than 1 time goatstudio ASP.NET 2.0 Basics 4 September 22nd, 2004 07:45 AM





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