Thursday, January 11, 2007

Default button in ASP.NET page

This is a neat way to make a button on an ASP.NET page the default button:

Page.RegisterHiddenField("__EVENTTARGET", "MyDefaultButton")

You can find a full explanation here.

No comments: