protected void SearchResearch(object sender, EventArgs e) { List <SciFusion.Models.ResearchWork> researchWork = new List <SciFusion.Models.ResearchWork>(); ResearchWorkDA searchResearchWork = new ResearchWorkDA(); researchWork = searchResearchWork.getResearchWorkByNameArea(this.ResearchName.Text, this.AreaName.Text); GridView3.DataSource = researchWork; GridView3.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { ResearchWorkDA researchWorkAccess = new ResearchWorkDA(); int researcherID = int.Parse(Session["ResearcherID"].ToString()); List <SciFusion.Models.ResearchWork> researchWorkList = new List <SciFusion.Models.ResearchWork>(); researchWorkList = researchWorkAccess.getResearchWorkByProfId(researcherID); ResearchWorkGrid.DataSource = researchWorkList; ResearchWorkGrid.DataBind(); }