Validation By Control ASP.Net

<%@Page Language="C#"%>




     ErrorMessage="* You must enter a value in the text box"
     ControlToValidate="txtTest"
     Display="dynamic">
*



     HeaderText="The following errors were found:"
     ShowSummary="true"
     DisplayMode="List" />