UserNameRequiredErrorMessage
沒有使用驗證摘要。我已經把登錄控制。在登錄控制的驗證過程中,消息未到來。它只顯示星號。我使用下面的代碼,其中包括了母版頁..UserNameRequiredErrorMessage在asp.net中未顯示使用驗證摘要
<asp:Login ID="Login1"
runat="server"
BackColor="#F7F7DE"
BorderColor="#CCCC99"
ValidatorTextStyle-ForeColor="Red"
PasswordRequiredErrorMessage="You must enter a password."
UserNameRequiredErrorMessage="You must enter a user name."
TextBoxStyle-Width="150"
BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="10pt"
TitleText="Members Login"
InstructionText="Please enter your user name and password for login."
onauthenticate="Login1_Authenticate"
onloginerror="Login1_LoginError">
<TitleTextStyle BackColor="#476042" Font-Bold="True" ForeColor="#FFFFFF"/>
</asp:Login>
<asp:ValidationSummary id="ValidationSummary1"
ShowMessageBox="true"
ShowSummary="true"
runat="server"
ValidationGroup="Login1">
</asp:ValidationSummary>