private void showInv_QualityUnitNameData() { Inv_QualityUnitName inv_QualityUnitName = new Inv_QualityUnitName(); inv_QualityUnitName = Inv_QualityUnitNameManager.GetInv_QualityUnitNameByID(Int32.Parse(Request.QueryString["inv_QualityUnitNameID"])); txtQualityUnitName.Text = inv_QualityUnitName.QualityUnitName; ddlRowStatus.SelectedValue = inv_QualityUnitName.RowStatusID.ToString(); }
protected void btnUpdate_Click(object sender, EventArgs e) { Inv_QualityUnitName inv_QualityUnitName = new Inv_QualityUnitName(); inv_QualityUnitName = Inv_QualityUnitNameManager.GetInv_QualityUnitNameByID(Int32.Parse(Request.QueryString["inv_QualityUnitNameID"])); Inv_QualityUnitName tempInv_QualityUnitName = new Inv_QualityUnitName(); tempInv_QualityUnitName.Inv_QualityUnitNameID = inv_QualityUnitName.Inv_QualityUnitNameID; tempInv_QualityUnitName.QualityUnitName = txtQualityUnitName.Text; tempInv_QualityUnitName.RowStatusID = 1; bool result = Inv_QualityUnitNameManager.UpdateInv_QualityUnitName(tempInv_QualityUnitName); Response.Redirect("AdminInv_QualityUnitNameDisplay.aspx"); }