AutoCompleteTextBox源代码

//  ********************************************************
//  自动完成控件
//  Designed by Faib Studio.
//  Copyright 2007
//  Email [email protected] 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

你可能感兴趣的:(autocomplete)