protected void Page_Load(object sender, EventArgs e) { DataSet result = new DataSet(); Elderlies objElder = new Elderlies(); Volunteers objVolunteer = new Volunteers(); objVolunteer.EmailAddr = Session["LoginID"].ToString(); objVolunteer.getPass(); objVolunteer.getId(); int errorCode2 = objVolunteer.displayElderListStatus(ref result); if (errorCode2 == 0) { gvElderN.DataSource = result.Tables["ElderDetails2"]; gvElderN.DataBind(); } }