1、数据库用SQL Express,如果现在需要在库里新添加一个Table,发布后的MDF怎么更新?覆盖么?新的数据也被盖了!!2、发布后还能不能用ASP.net Configuartion继续管理人员和规则?因为站点只提供管理员,如果一个账户被冻结了,我怎激活?再写这一部分的功能?还有,我现在当初在设计时使用的帐户发布后不能用了?怪异呀!!!

解决方案 »

  1.   

    1.this is a real problem when  releasing your website .for updating  your database ,I suggest excuting some commands to build the table you want to create.just build a page to type in some sql commands . 2.use the Membership and MembershipUser class,you can find the Mothods in Msdn.
      

  2.   

    1.没有人强迫你用SQL Express,正如没有人强迫你用Access一样。如果你用SQL Express,那么就按照对待mdb的方式对待mdf,SQL Express是Access在这方面应用的替代品,这是它的产品定位。如果你不喜欢它,或者说你需要的数据库不是这种定位,那么你可以用回SQL Server 2000或者SQL Server 2005(从Standard到Enterprice的任何一个版本),用aspnet_regsql.exe把站点使用的数据库注册为你指定的数据库就行了。2.自带的Membership相关控件,你当它是一个sample好了,不要尝试好像Personal Site Starter Kit那样去用。Personal Site Starter Kit就是准备你通过站点配置来管理的。你要做自己的系统的话,你必须自己去重新做UI封装Membership相关的指令。