62,263
社区成员
发帖
与我相关
我的任务
分享
@{
if(Roles.IsUserInRole("admin"))
{
<span>是管理员</span>
}else
{
<span>不是管理员</span>
//尼玛注释了之后能正常登陆了
}
}

<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebApplication1-20190225112703.mdf;Initial Catalog=aspnet-WebApplication1-20190225112703;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>