Admin/Conctrl/GongGao.ascx.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;
using JD.BLL;
using JD.Model;
public partial class Admin_Conctrl_GongGao : System.Web.UI.UserControl
{
int id;
protected void Page_Load(object sender, EventArgs e)
{
id = Convert.ToInt32(Request.QueryString["id"]);
GongGao gg = GongGaoMananger.GetGongGao(id);
if (!IsPostBack)
{
FreeTextBox1.Text = gg.Text;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string mgf = string.Empty;
try
{
GongGaoMananger.UpGongGao(FreeTextBox1.Text, id, ref mgf);
Response.Write(string.Format("<script>alert('{0}');location.href='default.aspx';</script>", mgf));
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。