admin/Lyb/Reply.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_Lyb_Reply : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Convert.ToInt32(Session["pass"]) != 1)
{
Response.Write("<script>alert('请先登录!')</script>");
Response.Write("<script>location.assign('../login.aspx')</script>");
}
else
{
if (!IsPostBack)
{
string strSQL = "select * from Lyb where LyId=" + Convert.ToInt32(Request.QueryString["Id"]);
DataTable dt = MyClass.OfflineSelect(strSQL);
lblAuthor.Text = dt.Rows[0]["LyAuthor"].ToString();
string strContent = Server.HtmlDecode(dt.Rows[0]["LyContent"].ToString());
strContent = strContent.Replace("<br>", "\r\n");
strContent = strContent.Replace("''","'");
strContent = strContent.Replace( " "," ");
lblContent.Text = strContent;
if (dt.Rows[0]["LyReply"] != null)
{
string strReply = Server.HtmlDecode(dt.Rows[0]["LyReply"].ToString());
strReply = strReply.Replace("<br>", "\r\n");
strReply = strReply.Replace("''", "'");
strReply = strReply.Replace(" ", " ");
txtContent.Text = strReply;
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string Reply = Server.HtmlEncode(txtContent.Text);
Reply = Reply.Replace("\r\n", "<br>");
Reply = Reply.Replace("'", "''");
Reply = Reply.Replace(" ", " ");
string strSQL = "update Lyb set LyReply='" + Reply + "',ReplyTime='" + DateTime.Now + "'where LyId=" + Convert.ToInt32(Request.QueryString["Id"]);
if (MyClass.ExecuteSql(strSQL) > 0)
{
Response.Write("<script>location.assign('Lymanage.aspx')</script>");
后面还有 9 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。