private void showADLHeaderDetailStatusData() { ADLHeaderDetailStatus aDLHeaderDetailStatus = new ADLHeaderDetailStatus(); aDLHeaderDetailStatus = ADLHeaderDetailStatusManager.GetADLHeaderDetailStatusByID(Int32.Parse(Request.QueryString["aDLHeaderDetailStatusID"])); txtADLHeaderDetailStatusName.Text = aDLHeaderDetailStatus.ADLHeaderDetailStatusName; }
protected void btnUpdate_Click(object sender, EventArgs e) { ADLHeaderDetailStatus aDLHeaderDetailStatus = new ADLHeaderDetailStatus(); aDLHeaderDetailStatus = ADLHeaderDetailStatusManager.GetADLHeaderDetailStatusByID(Int32.Parse(Request.QueryString["aDLHeaderDetailStatusID"])); ADLHeaderDetailStatus tempADLHeaderDetailStatus = new ADLHeaderDetailStatus(); tempADLHeaderDetailStatus.ADLHeaderDetailStatusID = aDLHeaderDetailStatus.ADLHeaderDetailStatusID; tempADLHeaderDetailStatus.ADLHeaderDetailStatusName = txtADLHeaderDetailStatusName.Text; bool result = ADLHeaderDetailStatusManager.UpdateADLHeaderDetailStatus(tempADLHeaderDetailStatus); Response.Redirect("AdminADLHeaderDetailStatusDisplay.aspx"); }