J
Jeff
Hi
ASP.NET 3.5
If a user tryes to register a username in my webproject, and that username
is already registered. Then I want the user to get an error message.
So I thought DuplicateUserNameErrorMessage was the right thing to use. But
no error messages get displayed when I enter a existing username and hit the
finish button
<asp:CreateUserWizard ID="cuwNewUser"
runat="server" AutoGeneratePassword="false"
OnCreatedUser="CreatedUser" DisableCreatedUser="true"
LoginCreatedUser="false" CreateUserButtonType="Image"
FinishCompleteButtonType="Image" DuplicateUserNameErrorMessage="tae"
FinishCompleteButtonImageUrl="~/Images/Go.gif"
CreateUserButtonImageUrl="~/Images/Go.gif" >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"
Title="Initial step">
<ContentTemplate>
<asp:ValidationSummary ID="ValidationSummary1"
ValidationGroup="cuwNewUser"
ShowSummary="true"
ShowMessageBox="false"
runat="server" />
</div>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=a03f5f7f11e50a3a"
connectionStringName="LocalSqlServer" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="true" minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
any suggestions why no error message is displayed?
ASP.NET 3.5
If a user tryes to register a username in my webproject, and that username
is already registered. Then I want the user to get an error message.
So I thought DuplicateUserNameErrorMessage was the right thing to use. But
no error messages get displayed when I enter a existing username and hit the
finish button
<asp:CreateUserWizard ID="cuwNewUser"
runat="server" AutoGeneratePassword="false"
OnCreatedUser="CreatedUser" DisableCreatedUser="true"
LoginCreatedUser="false" CreateUserButtonType="Image"
FinishCompleteButtonType="Image" DuplicateUserNameErrorMessage="tae"
FinishCompleteButtonImageUrl="~/Images/Go.gif"
CreateUserButtonImageUrl="~/Images/Go.gif" >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"
Title="Initial step">
<ContentTemplate>
<asp:ValidationSummary ID="ValidationSummary1"
ValidationGroup="cuwNewUser"
ShowSummary="true"
ShowMessageBox="false"
runat="server" />
</div>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=a03f5f7f11e50a3a"
connectionStringName="LocalSqlServer" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="true" minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
any suggestions why no error message is displayed?