Exemple #1
0
 private void ucUSERS_BeforeInsert(object sender, UpdateComponentBeforeInsertEventArgs e)
 {
     string sUserPwd = ucUSERS.GetFieldCurrentValue("PWD").ToString(); //�W�[�o�@��
     string sUserId = ucUSERS.GetFieldCurrentValue("USERID").ToString(); //�W�[�o�@��
     string enPwd = sUserPwd;
     if (sUserPwd != "")
     {
         char[] p = new char[] { };
         bool q = Encrypt.EncryptPassword(sUserId, sUserPwd, 10, ref p, false);
         enPwd = new string(p);
     }
     ucUSERS.SetFieldValue("PWD", enPwd);//�W�[�o�@��
 }
Exemple #2
0
 protected void OnBeforeInsert(UpdateComponentBeforeInsertEventArgs value)
 {
     UpdateComponentBeforeInsertEventHandler handler = (UpdateComponentBeforeInsertEventHandler)Events[EventBeforeInsert];
     if ((handler != null) && (value is UpdateComponentBeforeInsertEventArgs))
     {
         handler(this, (UpdateComponentBeforeInsertEventArgs)value);
     }
 }