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
  • 相关阅读:
    HTML-代码定义
    数组
    for。。。for嵌套if,if嵌套for。
    输入年月日, 判断输入的是否正确
    日期功能
    方程
    5.8 一维数组
    5.9 二维数组
    5.7 类
    5.4穷举,迭代
  • 原文地址:https://www.cnblogs.com/faib/p/742435.html
Copyright © 2011-2022 走看看