protected void BtnNewKey_Click(object sender, DirectEventArgs e) { Rockey4ND rockey = new Rockey4ND(); string hid = rockey.open(); string hidencode = aeskey.Base64Encrypt(aeskey.AES_Encrypt(New_Keyid.Text)); string bedencode = aeskey.Base64Encrypt(aeskey.AES_Encrypt(New_Bedno.Text)); rockey.WriteKey(hidencode + bedencode); rockey.close(); Common._NotificationShow("Write Successed for New Key..."); }
protected void BtnOK_Click(object sender, DirectEventArgs e) { Rockey4ND rockey = new Rockey4ND(); string hid = rockey.open(); string hidencode = aeskey.Base64Encrypt(aeskey.AES_Encrypt(Keyid.Text)); string bedencode = aeskey.Base64Encrypt(aeskey.AES_Encrypt(Bedno.Text)); rockey.WriteKey(hidencode + bedencode); rockey.close(); string sSQL = "UPDATE general_setup SET genst_desc='" + hidencode + bedencode + "' "; sSQL += "WHERE genst_ctg='License' AND genst_code='Plate'"; db.Excute(sSQL); Common._NotificationShow("Update Successed..."); }