Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DBConfig cfg = new DBConfig();
            DBFile   db  = cfg.db();

            db.Clear();
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DBFile.Clear();
            DBFolder.Clear();

            Response.Write("数据库清除成功<br/>");

            //删除upload文件夹
            PathBuilder pb      = new PathBuilder();
            string      pathSvr = pb.getRoot();
            //if(Directory.Exists(pathSvr)) Directory.Delete(pathSvr,true);
        }