Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Form.DefaultButton = Me.Button1.UniqueID End Sub