12 - ASP.NET DefaultButton Property

Опубликовано: 12 Май 2026
на канале: easyaspnet
2,492
9

A form may contain many buttons in a page, and we are aware that many of the users are used to pressing the Enter or the Return key on the keyboard to send the form back to the server. The DefaultButton property of the Form control is used to specify which button will react to this key press. Another ASP.NET control that supports the DefaultButton property is a Panel. Panel can be used to group many items together and we will talk about Panel very soon