Web/newsView.aspx.cs
(完整代码) 975Busing System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ShowInfo();
}
}
//初始化
private void ShowInfo()
{
if (Request.QueryString["id"] != null)
{
PSD.BLL.news bll = new PSD.BLL.news();
DataSet ds = bll.GetList(" nid=" + Request.QueryString["id"]);
if (ds.Tables[0].Rows.Count > 0)
{
DataRow sdr = ds.Tables[0].Rows[0];
Literal1.Text = sdr["title"].ToString();
Literal4.Text = sdr["memo"].ToString();
Literal2.Text = sdr["atime"].ToString();
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。