private void showPos_BrandData() { Pos_Brand pos_Brand = new Pos_Brand(); pos_Brand = Pos_BrandManager.GetPos_BrandByID(Int32.Parse(Request.QueryString["pos_BrandID"])); txtBrandName.Text = pos_Brand.BrandName; txtDetails.Text = pos_Brand.Details; }
protected void btnUpdate_Click(object sender, EventArgs e) { Pos_Brand pos_Brand = new Pos_Brand(); pos_Brand = Pos_BrandManager.GetPos_BrandByID(Int32.Parse(Request.QueryString["pos_BrandID"])); Pos_Brand tempPos_Brand = new Pos_Brand(); tempPos_Brand.Pos_BrandID = pos_Brand.Pos_BrandID; tempPos_Brand.BrandName = txtBrandName.Text; tempPos_Brand.Details = txtDetails.Text; bool result = Pos_BrandManager.UpdatePos_Brand(tempPos_Brand); Response.Redirect("AdminPos_BrandDisplay.aspx"); }