showri.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
namespace khglcrm
{
    public partial class showri : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Write("<script language='javascript'>alert('登录超时');top.location.href='login.aspx';<" + "/script>");
            }
            else
            {
                if (!Page.IsPostBack)
                {
                    this.show();
                }
            }
        }
        private void show()
        {
            if (Request["id"] != null)
            {
                DB mydb = new DB();
                OleDbDataReader dr = mydb.GetdataReader("select * from yuyue where id=" + Request["id"]);
                if (dr.Read())
                {
                    this.Label2.Text = "名称:" + dr["title"].ToString() + "";
                    Label3.Text = "内容:" + dr["content"].ToString();
                }
                dr.Close();
                mydb.close();
            }
        }
    }
}

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

AI 解读

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

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