Admin/Info_Edit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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;
public partial class Info_Edit : WebPage
{
protected void Page_Load(object sender, EventArgs e)
{
this.ValidateAdmin();
if (!this.IsPostBack)
{
this.initList();
this.initForm();
}
}
#region 窗体内部函数
/// <summary>
/// 初始化下拉列表信息
/// </summary>
private void initList()
{
InfoClassMgr mgr = new InfoClassMgr();
this.lstInfoClassID.DataSource = mgr.GetInfoClassList();
this.lstInfoClassID.DataTextField = "InfoClassName";
this.lstInfoClassID.DataValueField = "InfoClassID";
this.lstInfoClassID.DataBind();
}
/// <summary>
/// 初始化页面信息
/// </summary>
private void initForm()
{
this.hidInfoID.Value = this.Request.QueryString["InfoID"] + "";
if (this.hidInfoID.Value != "")
{
InfoMgr mgr = new InfoMgr();
Info info = mgr.GetInfo(this.hidInfoID.Value);
if (info != null)
{
this.txtCaption.Text = info.Caption;
this.txtContent.Text = info.Content;
this.lstInfoClassID.Items.FindByValue(info.C_InfoClass.InfoClassID.ToString()).Selected = true;
}
else
{
this.SendMessage("没有找到该信息");
this.btnOK.Enabled = false;
}
}
}
#endregion
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。