0
我已經嘗試幾乎所有可以找到的設置,但無法更改密碼。Asp.net ChangePassword控件不會更改密碼
<asp:ChangePassword ID="ChangePassword1" runat="server"
ChangePasswordButtonStyle-CssClass="btnClass"
CancelButtonStyle-CssClass="btnClass"
BorderStyle="Solid"
BorderWidth="1"
MembershipProvider="MyMembership"
DisplayUserName="true">
<CancelButtonStyle CssClass="btnClass"></CancelButtonStyle>
<ChangePasswordButtonStyle CssClass="btnClass"></ChangePasswordButtonStyle>
</asp:ChangePassword>
我有web.config中
<add name="ApplicationServices" connectionString="Data source=.\SQLEXPRESS;Database=Metamorphism;User id=sa;password=chandan;"/>
<add name="MetamorphismConnectionString" connectionString="Data source=.\SQLEXPRESS;Database=Metamorphism;User id=sa;password=chandan;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<profile defaultProvider="MyProfile">
<providers>
<add name="MyProfile" type="System.Web.Providers.SqlProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<membership defaultProvider="MyMembership">
<providers>
<add name="MyMembership" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" minRequiredPasswordLength="3"
minRequiredNonalphanumericCharacters="0" enablePasswordReset="true" applicationName="Friendisc"/>
</providers>
</membership>
我得到的是下面的錯誤密碼不正確或新密碼無效以下設置。新密碼長度最小值:3,要求非字母數字字符:0 但沒有密碼在所有
我道歉,其變化某些帳戶的密碼而不是某些帳戶的密碼。謝謝 –