コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //B_Admin.CheckIsLogged();
     if (!badmin.CheckLogin())
     {
         SupperGavel.Visible    = true;
         SupperGavelCon.Visible = false;
     }
     else if (badmin.CheckLogin())
     {
         B_Admin.IsSuperManage(); admintop.Visible = true;
     }
     if (!IsPostBack)
     {
         if (ConfigurationManager.ConnectionStrings["Connection String"].ConnectionString.Contains("Data Source"))
         {
             SafeC.Cert_Update();
             ZoomLa.BLL.Install.ChangeConnStr(SafeC.Cert_Encry(SqlHelper.ConnectionString));
         }
         if (LoginCount >= 3)
         {
             function.Script(this, "EnableCode();");
         }
     }
 }
コード例 #2
0
 //生成证书,并写入连接字符串
 private void WriteConnstr(string connstr)
 {
     SafeC.Cert_Update();
     connstr = SafeC.Cert_Encry(connstr);
     ZoomLa.BLL.Install.ChangeConnStr(connstr);
 }
コード例 #3
0
 protected void Encry_Btn_Click(object sender, EventArgs e)
 {
     try { After_T.Text = SafeC.Cert_Encry(Before_T.Text.Trim()); }
     catch (Exception ex) { After_T.Text = ex.Message; }
 }