could use some suggestions - master pages

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
ok, I could use some ideas on how to fix a problem in ASP.NET - Web Forms.

We use masterpages that have our page navigation and now are adding a sub-menu to be displayed on every page. In the sub menu I put a quick search that includes a text box and a command button named "btnGo".

My problem is, now on "enter" of every page no matter what control you are in it submits "btnGo" and not whichever command button is in the form on the page.

I need the "btnGo" to submit when clicked or when "enter" is pressed when the co-responding text box has focus, and the command button on the page to submit on enter when anything else has focus like it did before I added the control to the master page.

This sounds easy enough to fix, I am finding a lot of involved javascript functions that I could use but I figured I'd put some feelers out to see if anyone had any ideas.

Thank you!


More...

View All Our Microsoft Related Feeds
 
Back
Top