zoukankan      html  css  js  c++  java
  • AutoCompleteTextBox源代码

    // ********************************************************
    // 自动完成控件
    // Designed by Faib Studio.
    // Copyright 2007
    // Email faib920@126.com or QQ 55570729
    // ********************************************************

    using System;
    using System.Web.UI;
    using System.Web.UI.Design;
    using System.Web.UI.WebControls;
    using System.ComponentModel;
    using System.Collections.Specialized;
    using System.Drawing;
    using System.Drawing.Design;

    namespace FaibClass.WebControls
    {
        [DefaultProperty(
    "Text")]
        [ParseChildren(
    true"Items")]
        [DefaultEvent(
    "Changed")]
        [ToolboxData(
    "<{0}:AutoCompleteTextBox runat=server></{0}:AutoCompleteTextBox>")]
        
    public class AutoCompleteTextBox : BaseTextBox, IPostBackDataHandler, IPostBackEventHandler
        
    {
            [Description(
    "列表项改变时。")]
            
    public event EventHandler Changed;

            
    私有变量

            
    public AutoCompleteTextBox()
            
    {
                m_lics 
    = new ListItemCollection();
            }


            
    属性

            
    公有方法

            
    接口
        }

    }

    此控件继承自BaseTextBox类,BaseTextBox是一个简单的类,目前只实现了一个属性:
            protected internal virtual bool IsDesignMode
            
    {
                
    get return (Site != null? Site.DesignMode : false; }
            }

    Javascript源代码见http://www.cnblogs.com/faib/archive/2007/05/10/741875.html
  • 相关阅读:
    Spring MVC-表单(Form)标签-单选按钮(RadioButton)示例(转载实践)
    Ubuntu 16.04中VirtualBox 5.1使用U盘/USB设备的方法
    Spring MVC-表单(Form)标签-复选框集合(Checkboxes)示例(转载实践)
    Ubuntu 16.04下减小/释放/清理VirtualBox虚拟硬盘文件的大小
    关注点分离
    谈代码注释
    DelegatingFilterProxy类的作用
    GOPS 2018全球运维大会上海站 参会感悟梳理
    Java switch case
    Android 微信网址分享添加网络图片
  • 原文地址:https://www.cnblogs.com/faib/p/742435.html
Copyright © 2011-2022 走看看