public void BindSupAttGrid(DateTime StartDate) { DataSet dtCompany = objCom.Get_Company_Parent_Child(1, UDFLib.ConvertToInteger(Session["USERCOMPANYID"].ToString()), 0);; DDLCompany.DataSource = dtCompany.Tables[0]; DDLCompany.DataTextField = "Company_Name"; DDLCompany.DataValueField = "ID"; DDLCompany.DataBind(); DDLCompany.Items.Insert(0, new ListItem("-- ALL --", null)); dt = objInsp.TEC_Get_SupritendentAttendanceWithPort(StartDate, UDFLib.ConvertToInteger(DDLCompany.SelectedValue)); grdSupAtt.DataSource = dt; grdSupAtt.DataBind(); //string js = "LastLoad()"; // ScriptManager.RegisterStartupScript(this, this.GetType(), "ddd", js, true); //string[] retval = new string[2]; //retval = asncLoadCalendarBySupt("0", StartDate.ToString()); //newt0.InnerHtml = retval[0]; //newt.InnerHtml = retval[2]; }