<%@Page Language="C#"%>
<html>
<body>
<form runat="server">
<asp:textbox id="txtTest" text="delete this" runat="server" />
<asp:RequiredFieldValidator id="valRequired" runat="server"
ErrorMessage="* You must enter a value in the text box"
ControlToValidate="txtTest"
Display="dynamic">
*
</asp:RequiredFieldValidator>
<br />
<asp:button text="Validate" runat="server" />
<asp:ValidationSummary id="valSummary" runat="server"
HeaderText="<b>The following errors were found:</b>"
ShowSummary="true"
DisplayMode="List" />
</form>
</body>
</html>
|