コード例 #1
0
 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();
     }
 }
コード例 #2
0
ファイル: downfile.aspx.cs プロジェクト: pyteach/Learnsite
    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);
        }
    }
コード例 #3
0
    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);
        }
    }