About.aspx.cs

(完整代码) 989B

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BLL.Article;
using CSA.DAL;

public partial class About : System.Web.UI.Page
{
    protected string cur_Code, title, content, cur_id;
    protected DataRow drList;
    protected DataTable dtList, dtKind;
    protected void Page_Load(object sender, EventArgs e)
    {
        BindAboutUs();
    }

    protected void BindAboutUs()
    {
        cur_id = Request.QueryString["id"];   //接收Code
        if (string.IsNullOrEmpty(cur_id))                //如果没有Code传进,自定义Code
        {
            cur_id = BLL.Article.Article.getList("0101", 1).Rows[0]["id"].ToString();
        }

        dtList = BLL.Article.Article.GetListById(Convert.ToInt16(cur_id));
        drList = dtList.Rows[0];
        title = drList["title"].ToString();
        content = drList["content"].ToString();

    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。