T
|
Tim 4/29/2016 |
Maybe: |
A
|
Arkie author 4/29/2016 |
Maybe: string sql = "update registration set regfield1 = regid where regid = " + userdata["regid"] ; CommonFunctions.db_exec(sql, null); or, assuming you have a username field that the user fills out during registration: string sql = "update registration set regfield1 = regid where username = '" + userdata["username"] + "'"; CommonFunctions.db_exec(sql, null);
|
admin 4/29/2016 | |
Joe, string sql = "update registration set regfield1 = regid where username = '" + userdata["username"] + "'"; |
jadachDevClub member 4/29/2016 | |
You can also do it after successful login |
A
|
Arkie author 5/2/2016 |
Joe, did you try the second suggestion by Tim? string sql = "update registration set regfield1 = regid where username = '" + userdata["username"] + "'";
|
admin 5/2/2016 | |
Tim's suggestion is exactly what you need. Username cannot change between the moment user registered and AfterSuccessfulRegistration event fires. You are overthinking it. |
A
|
Arkie author 5/2/2016 |
You can also do it after successful login dynamic tblregistration = GlobalVars.dal.Table("registration"); tblregistration.Param["Username"] = XSession.Session["UserID"]; tblregistration.Value["regfield1"] = data["regid"]; tblregistration.Update();
|