VideoHomeControl/ListBoxTreeList.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Data;
using System.Web.UI;
using System.Web;
using System.Web.UI.WebControls;
using System.ComponentModel;
using myfilm.Common;
using myfilm.Data;
namespace myfilm.Control
{
/// <summary>
/// 树形列表框控件。
/// </summary>
[DefaultProperty("Text"),ToolboxData("<{0}:ListBoxTreeList runat=server></{0}:ListBoxTreeList>")]
public class ListBoxTreeList : myfilm.Control.WebControl
{
/// <summary>
/// 列表框控件变量
/// </summary>
public System.Web.UI.WebControls.ListBox TypeID=new System.Web.UI.WebControls.ListBox();
/// <summary>
/// 构造函数
/// </summary>
public ListBoxTreeList(): base()
{
}
/// <summary>
/// 构造函数
/// </summary>
/// <param name="sqlstring">查询字符串</param>
public ListBoxTreeList(string sqlstring): this()
{
BuildTree(sqlstring);
}
/// <summary>
/// 构造函数
/// </summary>
/// <param name="sqlstring">查询字符串</param>
/// <param name="selectid">选取项</param>
public ListBoxTreeList(string sqlstring,string selectid): this(sqlstring)
{
this.TypeID.SelectedValue=selectid;
}
/// <summary>
/// 创建树
/// </summary>
public void BuildTree()
{
if((this.SqlText!=null)&&(this.SqlText!=""))
{
BuildTree(this.SqlText);
}
}
后面还有 207 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
