示例#1
0
        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();
        }
示例#2
0
        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();
        }