WebApplication/Admin/Content/AddContent.aspx.cs
(开头部分) 49KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using DBUtility;
using System.Data.SqlClient;
namespace WebApplication.Admin.Content
{
public partial class AddContent : System.Web.UI.Page
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
Model.Models.GZXX_Model model = new Model.Models.GZXX_Model();
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
if (Request["channelid"] != null && Request["action"] != null)
{
if (Request["action"] != null)
{
model = bll.GetModelInfo(int.Parse(Request["channelid"].ToString()));
Label1.Text = model.modelname;
LoadModelControl(model.fieldsxml);
}
}
}
}
void LoadModelControl(string fieldsxml)
{
string c = string.Empty;
#region XML转换成DataTable
XmlDocument xmldoc = new XmlDocument();
xmldoc.InnerXml = fieldsxml;
XmlNode xn = xmldoc.SelectSingleNode("Model");
XmlNodeList xnl = xn.ChildNodes;//加载数据库XML数据
DataTable dt = new DataTable();
dt.Columns.Add("ControlId");
dt.Columns.Add("AllowFileExt");
dt.Columns.Add("MaxFileSize");
dt.Columns.Add("ControlGroupId");
dt.Columns.Add("ControlOrder");
dt.Columns.Add("ParentFieldID");
dt.Columns.Add("ControlIsShow");
dt.Columns.Add("ControlName");
dt.Columns.Add("Tips");
dt.Columns.Add("ControlType");
dt.Columns.Add("ControlWidth");
dt.Columns.Add("ControlHeight");
dt.Columns.Add("DefalutValue");
dt.Columns.Add("IsSearch");
dt.Columns.Add("IsContribution");
dt.Columns.Add("Option");
dt.Columns.Add("MustFill");
后面还有 628 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
