gonggaoConent.aspx.cs
(完整代码) 920Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
public partial class gonggaoConent : System.Web.UI.Page
{
public string biaoti = "";
public string neirong = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
show();
}
}
/// <summary>
/// 根据编号显示对应的信息
/// </summary>
protected void show()
{
//根据编号查询公告信息
SqlDataReader sdrques = SqlHelper.ExecuteReader("select * from gonggao where id=" + Request.QueryString["id"]);
if (sdrques.Read())
{
biaoti = sdrques["biaoti"].ToString();//公告标题
neirong = sdrques["neirong"].ToString();//公告内容
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。