⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texttype.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls.FieldControl
{
    using PowerEasy.Common;
    using PowerEasy.Controls;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class TextType : BaseFieldControl
    {
        protected PowerEasy.Controls.RequiredFieldValidator ReqTextSingleLine;
        protected HtmlTableRow Tab;
        protected TextBox TxtSingleLine;

        protected void Page_Load(object sender, EventArgs e)
        {
            string str;
            this.TxtSingleLine.MaxLength = DataConverter.CLng(base.Settings[0]);
            this.TxtSingleLine.Columns = DataConverter.CLng(base.Settings[1]);
            if (DataConverter.CBool(base.Settings[2]))
            {
                this.TxtSingleLine.TextMode = TextBoxMode.Password;
            }
            else
            {
                this.TxtSingleLine.TextMode = TextBoxMode.SingleLine;
            }
            if (((str = base.Settings[3]) != null) && (str != "0"))
            {
                if (!(str == "1"))
                {
                    if (str == "2")
                    {
                        this.TxtSingleLine.Attributes.Add("style", "ime-mode:disabled;");
                    }
                }
                else
                {
                    this.TxtSingleLine.Attributes.Add("style", "auto");
                }
            }
            if (base.EnableNull)
            {
                this.ReqTextSingleLine.Visible = true;
            }
            if (!base.IsPostBack)
            {
                this.TxtSingleLine.Text = this.FieldValue;
            }
            else
            {
                this.FieldValue = this.TxtSingleLine.Text;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -