protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["yid"] != null) { int yid = Int32.Parse(Request.QueryString["yid"].ToString()); LearnSite.BLL.SoftCategory ybll = new LearnSite.BLL.SoftCategory(); GridView1.Caption = ybll.GetTitle(yid); } ListAll(); } }
private void ShowList() { LearnSite.BLL.Soft st = new LearnSite.BLL.Soft(); string fyid = LabelFyid.Text; if (!string.IsNullOrEmpty(fyid)) { int yid = Int32.Parse(fyid); GVSoft.DataSource = st.GetShowSoftList(cook.Rhid.ToString(), yid); GVSoft.DataBind(); LearnSite.BLL.SoftCategory ybll = new LearnSite.BLL.SoftCategory(); GVSoft.HeaderRow.Cells[0].Text = ybll.GetTitle(yid); } }
private void ShowList() { string Rhid = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Rhid"].ToString(); LearnSite.BLL.Soft st = new LearnSite.BLL.Soft(); string fyid = LabelFyid.Text; if (!string.IsNullOrEmpty(fyid)) { int yid = Int32.Parse(fyid); GVSoft.DataSource = st.GetShowSoftList(Rhid, yid); GVSoft.DataBind(); LearnSite.BLL.SoftCategory ybll = new LearnSite.BLL.SoftCategory(); GVSoft.HeaderRow.Cells[0].Text = ybll.GetTitle(yid); } }