protected void Page_Load(object sender, EventArgs e) { switch (step) { case "servertest": testResult = InstallUtils.InitialSystemValidCheck(); stepNum = 1; break; case "dbset": BaseConfigInfo dntConfigInfo = BaseConfigProvider.GetRealBaseConfig(); if (dntConfigInfo != null) { FillDatabaseInfo(dntConfigInfo.Dbconnectstring); tablePrefix = dntConfigInfo.Tableprefix; } stepNum = 2; break; case "forumset": stepNum = 3; break; case "initial": stepNum = 4; break; default: InstallUtils.SaveDntConfigForumPath(); break; } }
protected void Page_Load(object sender, EventArgs e) { //读取默认dnt.config文件内容 BaseConfigInfo dntConfigInfo = BaseConfigProvider.GetRealBaseConfig(); if (dntConfigInfo != null) { FillDatabaseInfo(dntConfigInfo.Dbconnectstring); tablePrefix = dntConfigInfo.Tableprefix; } if (!IsPostBack) { if (Request.QueryString["type"] == "unchecked") { CheckBoxUnchecked(); } else if (Request.QueryString["type"] == "checked") { CheckBoxChecked(); } } }