Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem with default button pressed on ASPX page.

Reply
Thread Tools

problem with default button pressed on ASPX page.

 
 
Milsnips
Guest
Posts: n/a
 
      12-02-2004
hi there,

i got 2 textboxes and 2 buttons..both are search input and search buttons..

when i have focus of the 2nd textbox and i press enter, it always fires the
event for the 1st button.

Help?????
Paul.


 
Reply With Quote
 
 
 
 
John M Deal
Guest
Posts: n/a
 
      12-02-2004
Here's link to a metabuilder's article/sample that will allow you to set
the button that a specific text box will trigger.

http://www.metabuilders.com/Tools/DefaultButtons.aspx

Have A Better One!

John M Deal, MCP
Necessity Software

Milsnips wrote:
> hi there,
>
> i got 2 textboxes and 2 buttons..both are search input and search buttons..
>
> when i have focus of the 2nd textbox and i press enter, it always fires the
> event for the 1st button.
>
> Help?????
> Paul.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set a button from a user control the default button on an aspx page AlecL ASP .Net 2 02-12-2007 09:15 PM
2 button form + which button was pressed Bill_W_Stephens@yahoo.com Javascript 1 04-04-2006 04:25 AM
How to detect that a key is being pressed, not HAS been pressed earlier!?? Rune Python 6 01-29-2004 12:39 PM
Previous Link Cached after Browser Back Button pressed Earl Teigrob ASP .Net 0 12-15-2003 06:00 PM
If value in name field in top row disable submit button until add button is pressed or field is cleared. Chuck Javascript 0 11-10-2003 02:23 AM



Advertisments