protected void btnGo_Click(object sender, EventArgs e) { try { EWA_Common objEWA = new EWA_Common(); BL_Common objBL = new BL_Common(); objEWA.OrgId = ddlorganization.SelectedValue;//Session["OrgId"].ToString(); objEWA.BranchId = ddlBranch.SelectedValue.ToString(); objEWA.CourseId = ddlCourse.SelectedValue.ToString(); objEWA.ClassId = ddlClass.SelectedValue.ToString(); objEWA.date = Convert.ToDateTime(txtDate.Text.ToString()).ToShortDateString(); DataSet ds = objBL.BindTimeTable_BL(objEWA); if (ds.Tables[0].Rows.Count > 0) { bindGridView(ds); } else { msgBox.ShowMessage("Record not found", "Information", UserControls.MessageBox.MessageStyle.Critical); } } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }