项目里面使用的登录权限判断不是用asp.net2.0自带的登录,创建用户控件,是自己单独写的代码,现在如何在一个页面中间用webpart的设计模式(WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode)?如果用Forms身份验证的注册用户验证是不可能了!我想只能使用匿名用户,但在web.config里面加了如下节点还是不行:
 <authentication mode="Forms"></authentication>
    <anonymousIdentification enabled="true"/><profile><properties>
        <add name="Name" allowAnonymous="true" />
        <add name="LastSubmit" type="System.DateTime" allowAnonymous="true"/>
        <group name="Address">
          <add name="City"  allowAnonymous="true"/>
          <add name="PostalCode"  allowAnonymous="true"/>
        </group>
      </properties>
    </profile>
每次运行到WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode还是报错:此页当前禁用指定的显示模式。请确保为当前用户启用了个性化设置。参数名: value
主要就是在我的项目里面能使用webpart的托拽功能就行,大家有什么好的解决方案教教小弟?谢了