private void showPos_ColorData() { Pos_Color pos_Color = new Pos_Color(); pos_Color = Pos_ColorManager.GetPos_ColorByID(Int32.Parse(Request.QueryString["pos_ColorID"])); txtColorName.Text = pos_Color.ColorName; txtColorCode.Text = pos_Color.ColorCode; }
protected void btnUpdate_Click(object sender, EventArgs e) { Pos_Color pos_Color = new Pos_Color(); pos_Color = Pos_ColorManager.GetPos_ColorByID(Int32.Parse(Request.QueryString["pos_ColorID"])); Pos_Color tempPos_Color = new Pos_Color(); tempPos_Color.Pos_ColorID = pos_Color.Pos_ColorID; tempPos_Color.ColorName = txtColorName.Text; tempPos_Color.ColorCode = txtColorCode.Text; bool result = Pos_ColorManager.UpdatePos_Color(tempPos_Color); Response.Redirect("AdminPos_ColorDisplay.aspx"); }