ZhuangJiaDetial.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class NewsDetial : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetNewsInfo();
}
}
private void GetNewsInfo()
{
string ID = Request.QueryString["ID"].ToString();
string sqlNews = "select * from View_1 where ZJID=" + ID;
DataSet result = new DataSet();
result = DBHelper.GetDataSet(sqlNews);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
this.GridView1.DataSource = result;
this.GridView1.DataBind();
this.Label2.Text = result.Tables[0].Rows[0]["KeShi"].ToString();
this.Label3.Text = result.Tables[0].Rows[0]["XingMing"].ToString();
this.Label4.Text = result.Tables[0].Rows[0]["XingBie"].ToString();
this.Label5.Text = result.Tables[0].Rows[0]["NianLing"].ToString();
this.Label6.Text = result.Tables[0].Rows[0]["ZhiCheng"].ToString();
this.Label7.Text = result.Tables[0].Rows[0]["XueXiao"].ToString();
this.Label8.Text = result.Tables[0].Rows[0]["JianJie"].ToString();
}
else
{
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string ID = Request.QueryString["ID"].ToString();
string URL = "YuYue.aspx?ID="+ID;
Response.Redirect(URL);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。