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
  • 相关阅读:
    Codeforces #548 (Div2)
    Codeforces #550 (Div3)
    UVA
    ios 动画
    CAAnimation
    iOS三种定时器的用法NSTimer、CADisplayLink、GCD
    iOS使用宏写单例
    iOS完美的网络状态判断工具
    iOS开发
    iOS自定义控件教程:制作一个可重用的旋钮
  • 原文地址:https://www.cnblogs.com/faib/p/742435.html
Copyright © 2011-2022 走看看