protected void JPSLogin_Click(object sender, EventArgs e) { JPSService.JPSServiceSoapClient jpsopap = new JPSService.JPSServiceSoapClient(); if (jpsopap.Login(user.Id, user.Password)) { jpsUser["name"] = jpsopap.GetUsername(); jpsUser["id"] = jpsopap.GetUserId(); jpsUser["email"] = jpsopap.GetUserEmail(); jpsUser["balance"] = jpsopap.GetUserBalance(); jpsUser["linked"] = jpsopap.GetUserLinkedStatus(); user.Jps = true; UserTableAdapters.UsersTableAdapter uta = new UserTableAdapters.UsersTableAdapter(); uta.UpdateJps(user.Jps, user.Id); GV.JpsUser = jpsUser; } }
protected void jpsUnlink_Click(object sender, EventArgs e) { user.Jps = false; UserTableAdapters.UsersTableAdapter uta = new UserTableAdapters.UsersTableAdapter(); uta.UpdateJps(user.Jps, user.Id); }