<%@ Page Language="C#" %> RequiredFieldValidator Runat="server" ErrorMessage="Required!" ControlToValidate="TextBox1"> Runat="server" Text="Submit" OnClick="Button1_Click" />