protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["login"] == null) { lbtnUser.Visible = false; lbtncart.Visible = true; lbtnlogin.Visible = true; lblAdmin.Visible = false; lbtnlog.Visible = false; lbtnCate.Visible = false; lbtnProd.Visible = false; lbtnCartzz.Visible = false; } else { idus = Convert.ToInt32(Session["Login"]); un = rp.getUserbyID(idus); lblUser.Text = un.usFulname; imgav.ImageUrl = "images/Userimg/" + un.usImg; lbtnUser.Visible = true; lbtncart.Visible = false; lbtnlogin.Visible = false; lblAdmin.Visible = true; lbtnlog.Visible = true; lbtnCate.Visible = true; lbtnProd.Visible = true; lbtnCartzz.Visible = true; } } }
public void UpdateUserPass(user_name un) { try { LQDataContext ctxx = new LQDataContext(); var q = ctxx.user_names.Where(d => d.id_user == un.id_user).SingleOrDefault(); q.password = un.password; ctxx.SubmitChanges(); } catch (Exception ex) { } }
public void UpdateUserPass(user_name un) { try { LQDataContext ctxx = new LQDataContext(); var q = ctxx.user_names.Where(d => d.id_user == un.id_user).SingleOrDefault(); q.password = un.password; ctxx.SubmitChanges(); } catch (Exception ex) { } }
public void UpdateUser(user_name un) { try { LQDataContext ctxx = new LQDataContext(); var q = ctxx.user_names.Where(d => d.id_user == un.id_user).SingleOrDefault(); q.user_name1 = un.user_name1; q.usFulname = un.usFulname; q.usImg = un.usImg; q.usAge = un.usAge; q.email = un.email; ctxx.SubmitChanges(); } catch (Exception ex) { } }
public void load_us() { if (ck.checkQuanlity(Request.QueryString["id"])) { idus = Convert.ToInt32(Request.QueryString["id"]); un = rp.getUserbyID(idus); txtName.Text = un.usFulname; txtAge.Text = un.usAge + ""; txtEmail.Text = un.email; lblUsname.Text = un.user_name1; imgava.ImageUrl = "images/Userimg/" + un.usImg; } else { Response.Redirect("404.html"); } }
public void load_us() { if (ck.checkQuanlity(Request.QueryString["id"])) { idus = Convert.ToInt32(Request.QueryString["id"]); un = rp.getUserbyID(idus); txtName.Text = un.usFulname; txtAge.Text = un.usAge + ""; txtEmail.Text = un.email; lblUsname.Text = un.user_name1; imgava.ImageUrl = "images/Userimg/" + un.usImg; } else { Response.Redirect("404.html"); } }
public void UpdateUser(user_name un) { try { LQDataContext ctxx = new LQDataContext(); var q = ctxx.user_names.Where(d => d.id_user == un.id_user).SingleOrDefault(); q.user_name1 = un.user_name1; q.usFulname = un.usFulname; q.usImg = un.usImg; q.usAge = un.usAge; q.email = un.email; ctxx.SubmitChanges(); } catch (Exception ex) { } }
partial void Insertuser_name(user_name instance);
private void detach_user_names(user_name entity) { this.SendPropertyChanging(); entity.role = null; }
private void attach_user_names(user_name entity) { this.SendPropertyChanging(); entity.role = this; }
partial void Deleteuser_name(user_name instance);
partial void Updateuser_name(user_name instance);
partial void Insertuser_name(user_name instance);
private void attach_user_names(user_name entity) { this.SendPropertyChanging(); entity.role = this; }
partial void Updateuser_name(user_name instance);
partial void Deleteuser_name(user_name instance);
private void detach_user_names(user_name entity) { this.SendPropertyChanging(); entity.role = null; }