当我执行表单时,我没有得到“'*' - 必填字段不能留空”作为我的输出,即使我将所需的文本框留空,请尝试帮助我......
这是我的验证摘要代码:
<asp:ValidationSummary ID="ValidationSummary1"
ForeColor="Red" HeaderText="'*' - Required Field Can't Be Left Blank"
EnableClientScript="true" runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox2" ErrorMessage="*" Display="Dynamic" ForeColor="Red" ValidationGroup="login"></asp:RequiredFieldValidator>