📄 propertycontrol.aspx.cs
字号:
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 Zeroone.Custom;
using Zeroone.Custom.CustomPropertyControl;
using System.Xml;
public partial class Admin_PropertyControl : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string path = Request.QueryString["path"];
int customPropertyID = int.Parse(Request.QueryString["CustomPropertyID"]);
ConfigControlCollection controls = ControlConfiguration.GetControlConfiguration().Controls;
CustomPropertyControlInfo cpci = CustomPropertyControlController.GetCustomPropertyControl(path,customPropertyID);
if (cpci != null)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(cpci.ControlXMLData);
XmlNode root = xmlDoc.SelectSingleNode("CustomPropertyControl");
foreach (ConfigControl cc in controls)
{
if(cc.ControlName.ToLower() == root.Attributes["controlName"].Value.ToLower())
Response.Redirect(cc.SettingFile + "?path=" + path + "&customPropertyID=" + customPropertyID);
}
}
this.ddlControls.DataSource = controls;
this.ddlControls.DataBind();
}
}
protected void btnNextStep_Click(object sender, EventArgs e)
{
Response.Redirect(ddlControls.SelectedValue + "?path=" + Request.QueryString["path"] + "&customPropertyID=" + Request.QueryString["customPropertyID"]);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -