|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/04556082/ecc0c5af/ |
?#pragma checksum "d:\wwwroot\gzgunuo\wwwroot\qiao\Gong_yylc.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "86E47FC1BC534B1F67E648CC3FD83D4F"
#line 1 "d:\wwwroot\gzgunuo\wwwroot\qiao\Gong_yylc.aspx.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using System.IO;
public partial class Admin_Gong : System.Web.UI.Page
{
private int Id { get { return Convert.ToInt32(Request.QueryString["Id"]); } }
private string Name { get { return Convert.ToString(Request.QueryString["n"]); } }
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (this.Name == null || this.Name == "")
{
this.Button1.Enabled = false;
return;
}
if (this.Id > 0)
{
DataBinGong();
}
}
}
public void DataBinGong()
{
Gong g = SqlManager.GetGong(this.Id);
if (g == null)
this.Response.Redirect("GongList_yylc.aspx?n=" + this.Name);
this.text1.Value = g.Title;
this.text2.Value = g.keywords;
this.textContent.Text = g.Content;
}
protected void Button1_Click(object sender, EventArgs e)
{
Gong g = new Gong();
g.Id = this.Id;
g.tableName = this.Name;
g.Title = this.text1.Value;
g.Content = this.textContent.Text;
g.Alt = "";
g.keywords = this.text2.Value;
g.description = "";
g.CID = 0;
g.CkCount = 0;
g.Order = 0;
g.Time = DateTime.Now;
int Id2 = this.Id;
if (this.Id > 0)
{
if (SqlManager.UpdateGong(g))
Response.Write(string.Format("<script>alert('批改成功!');location.href='GongList_yylc.aspx?n={0}';</script>", this.Name));
else
Response.Write(string.Format("<script>alert('批改失败!');location.href='GongList_yylc.aspx?n={0}';</script>", this.Name));
}
}
}
#line default
#line hidden