在CreateUserWizard中更改密码限制

问题描述:

我通过Internet研究了CreateUserWizard中的更改密码限制.几乎所有给出的答案对我来说都是将代码添加到"Web.Config"文件中.但是,这种方法不适用于我的情况.

添加后:
minRequiredNonAlphanumericCharacters="0" minRequiredPasswordLength="3"

下面有蓝色的卷曲线,表明不允许使用此属性. -在任何地方我都可以添加更改pw限制的web.config文件之外的内容或编辑web.config文件的地方吗?

这是我的web.config文件:

I had research on the change password restriction in CreateUserWizard through the internet. And almost all of the answers given is for me to add the codes into the "Web.Config" file. However, this method won''t works for my case.

Upon adding :
minRequiredNonAlphanumericCharacters="0" minRequiredPasswordLength="3"

there are blue curly lines below, stating that this attribute is not allowed. -- Is there anywhere i can add change the pw restriction apart on the web.config file or edit the web.config file???

This is my web.config file:

<?xml version="1.0"?>

<configuration>
<connectionStrings>
<add name="ASPNETDBConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"  providerName="System.Data.SqlClient"/>
</connectionStrings>

<system.web>
<authentication mode="Forms" />
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>

我认为只有添加了会员功能,您才能使用上面的东西……


ASP.NET成员资格和角色提供者 [
I think you can use the above thing only if you added membership function......


ASP.NET Membership and Role Provider[^]