protected void btnAddItem_Click(object sender, EventArgs e)
        {
            if (CheckDetailExisting())
            {
                lblMessage.Text = "You have chosen the selected item. So, Please update the quantity by selecting from list";
            }
            else
            {

                if (txtRequestID.Text != "")
                {
                    EmployeeRequBLL empbll = new EmployeeRequBLL();
                    empbll.insertDetailRecord(Convert.ToInt32(txtRequestID.Text), ddlItem.SelectedValue.ToString(), Convert.ToInt32(txtQty.Text));

                    gvRequestDetail_DataBind(Convert.ToInt32(txtRequestID.Text));

                    CalculateTotalQty();
                    if (txtEvent.Text == "Enquiry")
                    {
                        DataTable dttemptable = ((DataTable)ViewState["TempTable"]);//get records from viewstate
                        DataRow dr = dttemptable.NewRow();
                        dr["ItemCode"] = ddlItem.SelectedValue.ToString();
                        dttemptable.Rows.Add(dr);
                        ViewState["TempTable"] = dttemptable;
                    }
                    ComboDataBind();
                    txtQty.Text = "0";
                }
                lblMessage.Text = "";
            }
        }
 void updateStatustoEmpReq(int reqid, string statusupdate)
 {
     EmployeeRequBLL empreqbll = new EmployeeRequBLL();
     empreqbll.updateStatus(reqid, statusupdate); //update employee request status.
 }