How to set my save button to default?

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

is it a win application?
if yes, on the form is a property acceptbutton
 
Hi all!

I have a form with a lot of buttons on it. Doés anyone knows how to set one
of this buttons to default when I press enter?

/Marre
 
Just put this in your Page_Load:
Page.RegisterHiddenField("__EVENTTARGET", "ButtonName")
Change ButtonName to the name of your default button.
 
Hi there,

if it's a windows form then, set the AcceptButton Property
of Form to the ButtonX. And another important thing is
setting the tab order of the ButtonX to 0.


Justine
 
Thanx all!

I´ve solved the problem with Mike Mayer´s javascript.

/Marre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top