所谓的自己写意思是用input等html控件是吧?如果只是展示,不必回调,用input省资源.如果你是做一个很复杂的功能型系统,那用内置控件才叫方便.

解决方案 »

  1.   

    自己写的控件也是继承.net控件的,可以在控件中写自己需要的功能
      

  2.   

    快啊
    服务器控件赶不上html控件啊。
    人家还都是用纯html呢
      

  3.   

    我看了一个网站中
         用到    <FTB:FreeTextBox id="b_value" runat="server" Width="100%" ButtonSet="Office2000" StartMode="HtmlMode"></FTB:FreeTextBox>    有些不明白
      

  4.   

      一般写textbox控件,用什么写?
      大概要写多少代码?
      

  5.   

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Web.UI.WebControls;
    using System.Drawing;
    namespace ClassLibrary1
    {
        public class myTextBox: TextBox
        {
            public myTextBox()
            {
                this.BackColor = Color.Black;
                this.ForeColor = Color.Red;
            }
        }
    }
    //这个控件没有什么实际意义