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 errorCode = objVolunteer.getPrepare(ref result); if (errorCode == 0) { gvElderPrepare.DataSource = result.Tables["ElderDetails"]; gvElderPrepare.DataBind(); } }