//-------------------------end notice borad--------------------// // -----------------------Naveen CounterBox------------------------- public void counter_box() { try { dl_rti_notice dl = new dl_rti_notice(); ReturnClass.ReturnDataTable dt = new ReturnClass.ReturnDataTable(); dt = dl.Get_Count(); string[] arr_name; if (Session["language"].ToString() == "en-GB") { arr_name = new string[] { "Total RTI Submited", "Total Department", "Total Offices", "Total Employees" }; } else { arr_name = new string[] { "कुल आर.टी. आई.", "कुल विभाग", "कुल कार्यालय", "कुल कर्मचारी" }; } string[] arr_color = new string[] { "box-green", "box-red", "box-blue", "col_last box-purple" }; string str_count = ""; if (dt.table.Rows.Count > 0) { Literal_Count.Text = ""; for (int i = 0; i < dt.table.Rows.Count; i++) { str_count = dt.table.Rows[i]["count_rti_dept_ofc_emp"].ToString(); Literal_Count.Text = Literal_Count.Text + "<div class=\"col_one_fourth nobottommargin center " + arr_color[i] + "\">"; Literal_Count.Text = Literal_Count.Text + "<div class=\"counter counter-large\"> <span data-from=\"100\" data-to=\"" + str_count + "\" data-refresh-interval=\"50\" data-speed=\"2000\">" + str_count + "</span> </div>"; Literal_Count.Text = Literal_Count.Text + "<h5>" + arr_name[i] + "</h5>"; Literal_Count.Text = Literal_Count.Text + "</div>"; } } } // End of try catch { } } // End of counter box