private void GetEWFCount() { DataTable dt = EWF_Task_JobBLL.GetMyJobCount((int)Session["UserID"]); if (dt != null && dt.Rows.Count > 0) { ViewState["JobDecisionCount"] = dt.Rows[0]["JobDecisionCount"]; ViewState["JobDecisionCount_Agency"] = dt.Rows[0]["JobDecisionCount_Agency"]; ViewState["JobInviteConsultCount"] = dt.Rows[0]["JobInviteConsultCount"]; ViewState["JobCCCount"] = dt.Rows[0]["JobCCCount"]; ViewState["MyInitTask"] = dt.Rows[0]["MyInitTask"]; } }