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) { upgradeSqlScriptPath = string.Format("sqlscript/{0}/", baseconfig.Dbtype.ToString().Trim()); switch (step) { case "servertest": testResult = InstallUtils.InitialSystemValidCheck(); stepNum = 1; break; case "upgrade": stepNum = 2; break; } }