Backup/Discuz.Control/ListBox.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using Discuz.Common;
using Discuz.Data;
namespace Discuz.Control
{
/// <summary>
/// 列表框控件
/// </summary>
[DefaultProperty("Text"),ToolboxData("<{0}:ListBox runat=server></{0}:ListBox>")]
public class ListBox : System.Web.UI.WebControls.ListBox,Discuz.Control.IWebControl
{
/// <summary>
/// 构造函数
/// </summary>
public ListBox(): base()
{
this.SelectionMode=ListSelectionMode.Multiple;
}
/// <summary>
/// 当某选项被选中后,获取焦点的控件ID(如提交按钮等)
/// </summary>
[Bindable(true),Category("Appearance"),DefaultValue("")]
public string SetFocusButtonID
{
get
{
object o = ViewState[this.ClientID + "_SetFocusButtonID"];
return (o == null) ? "" : o.ToString();
}
set
{
ViewState[this.ClientID + "_SetFocusButtonID"] = value;
if (value != "")
{
this.Attributes.Add("onChange", "document.getElementById('" + value + "').focus();");
}
}
}
private string _hintTitle = "";
/// <summary>
/// 提示框标题
/// </summary>
[Bindable(true), Category("Appearance"), DefaultValue("")]
public string HintTitle
{
get { return _hintTitle; }
set { _hintTitle = value; }
}
private string _hintInfo = "";
/// <summary>
后面还有 84 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
