protected void btnConvert_Click(object sender, EventArgs e) { // string pwd = EncryptValue_MD5Hash("Bob*3a6b11"); var lst = new CardHolderManager().GetListCardHolders(); foreach (var userList in lst) { var objUser = new CardHolder_MstDTO(); objUser.MdfHashingPwd = EncryptValue_MD5Hash(userList.User_pwd); objUser.CardHolder_Id = userList.CardHolder_Id; var obj = new CardHolderManager(); try { obj.UpdateCardHolderPassword(objUser); } catch (Exception ex) { throw ex; } } }