protected void btnGo_Click(object sender, EventArgs e) { try { //GetStudentData(); EWA_Common objEWA = new EWA_Common(); BL_Common objBL = new BL_Common(); objEWA.OrgId = Session["OrgId"].ToString(); objEWA.CourseId = ddlCourse.SelectedValue; objEWA.BranchId = ddlBranch.SelectedValue; objEWA.ClassId = ddlClass.SelectedValue; objEWA.Status = rblStatus.SelectedValue; DataSet ds = objBL.Bind_AdmissionCompleted_BL(objEWA); GrdStudent.DataSource = ds.Tables[0]; GrdStudent.DataBind(); gvPrint.DataSource = ds.Tables[0]; gvPrint.DataBind(); //ViewState["PrintData"]= ds.Tables[0]; } catch (Exception ex) { } }