GangWeiDetial.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using 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 KeChengDetial : 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 TB_GangWei where ID=" + ID;
DataSet result = new DataSet();
result = DBHelper.GetDataSet(sqlNews);
this.Label1.Text = result.Tables[0].Rows[0]["GangWei"].ToString();
this.Label2.Text = result.Tables[0].Rows[0]["LeiXing"].ToString();
this.Label3.Text = result.Tables[0].Rows[0]["DiZhi"].ToString();
this.Label4.Text = result.Tables[0].Rows[0]["GongQi"].ToString();
this.Label5.Text = result.Tables[0].Rows[0]["GongZuoShiJian"].ToString();
this.Label6.Text = result.Tables[0].Rows[0]["YuYaoRenShu"].ToString();
this.Label7.Text = result.Tables[0].Rows[0]["GongZi"].ToString();
this.Label8.Text = result.Tables[0].Rows[0]["FuZheRen"].ToString();
this.Label9.Text = result.Tables[0].Rows[0]["LaoShiTel"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Session["MemberName"] != null)
{
int ID = int.Parse(Request["ID"].ToString());
string SQL = "";
bool iRet = false;
SQL = "insert into TB_BaoMing(KID,UserName) values('" + ID + "','" + Session["MemberName"].ToString() + "')";
iRet = DBHelper.ExecSql(SQL);
if (iRet)
{
Response.Write("<script>alert('恭喜您,操作成功!');document.location=document.location;</script>");
}
后面还有 14 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。