WebApp/Admin/Comment_Editor.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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;
using RM.Common;
namespace RM.WebApp.Admin
{
public partial class Comment_Editor : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//ddlClass.DataSource = new RM.BLL.CommentType().GetList();
//ddlClass.DataBind();
ddlClass.Items.Insert(0, "==请选择==");
ddlClass.Items[0].Value = "0";
btnCancel.Visible = true;
btnCancel.Attributes.Add("onclick", "history.back();return false;");
RM.Entity.Comment MyComment = new RM.Entity.Comment();
RM.BLL.Comment CommentBLL = new RM.BLL.Comment();
string str = Request.QueryString["ID"];
if (OperateText.IsNumber(str))
{
MyComment = CommentBLL.GetEntity(Convert.ToInt32(str));
}
else
{
Response.Redirect("Comment_Manage.aspx", true);
}
hfCommentID.Value = MyComment.ID.ToString();
Method.sltListBox(ref ddlClass, MyComment.TypeID.ToString());
txtTitle.Text = MyComment.Title;
txtContent.Text = MyComment.Content;
txtMember.Text = new RM.BLL.Members().GetEntity(MyComment.MemberID).UserName;
txtReply.Text = MyComment.Reply;
chkIsPub.Checked = MyComment.IsPub;
txtCreateTime.Text = MyComment.CreateTime.ToString();
txtModifyTime.Text = MyComment.ModifyTime.ToString();
lblAction.Text = "修改";
}
}
protected void btn_Save_Click(object sender, EventArgs e)
{
int CommentID = Convert.ToInt32(hfCommentID.Value);
后面还有 24 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。