How to set my save button to default?

  • Thread starter Thread starter Stefan
  • Start date Start date
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
 
Back
Top