Web/Admin/manage/NewsDetail.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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;
using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Model;
using System.Collections.Generic;
public partial class Admin_NewsDetail :AdminPageBase
{
News Newsbll = new News();
protected void Page_Load(object sender, EventArgs e)
{
ValidatorSet validator = new ValidatorSet("admin");
validator.SetValidator();
this.pageType.Text = "添加公告";
if (!Page.IsPostBack)
{
this.pageType.Text = "编辑公告";
GetData();
}
}
public void GetData()
{
if (HjNetHelper.GetQueryString("id") != "")
{
NewsInfo info = new NewsInfo();
info = Newsbll.GetModel(Convert.ToInt32(HjNetHelper.GetQueryString("id")));
tbTitle.Text = info.Title;
FCKContent.Value = info.EContent;
tbreve1.Text = info.reve1 + "";
tbistop.Text = info.SortNum + "";
}
}
protected void btSave_Click(object sender, EventArgs e)
{
NewsInfo info = new NewsInfo();
info.DataID = HjNetHelper.GetQueryInt("id", 0);
info.Title = WebUtility.InputText(tbTitle.Text);
info.Posttime = DateTime.Now;
info.SortNum = Convert.ToInt32(tbistop.Text);
info.EContent = FCKContent.Value;
info.reve1 = Convert.ToInt32(tbreve1.Text);
info.Reve2 = "";
if (Request["id"] == null)
{
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
