日期:2014-05-19  浏览次数:20465 次

我定义了一个用户控件,加了些属性,但是..
就是在用我这个自定义用户控件的时候,点击我定义的属性,在提示筐下面没有提示

请问怎么让我定义了属性在提示框里有提示信息啊??   要在属性上面加[]吗???
谢谢@@@

        private   string   _TypeID;
        public   string   TypeID
        {
                get   {   return   _TypeID;   }
                set   {   _TypeID   =   value;   }
        }
        protected   void   Page_Load(object   sender,   EventArgs   e)
        {
                if   (!this.IsPostBack)
                {
                        Bind();
                }
        }

        private   void   Bind()
        {
                //绑定到Labe1上去
                string   con   =   ConfigurationManager.ConnectionStrings[ "zydatabaseConnectionString "].ConnectionString;
                SqlConnection   dbconnection   =   new   SqlConnection(con);
                dbconnection.Open();

                SqlCommand   cmd   =   new   SqlCommand( "select   newsType_name   from   zy_NewsType   where   newsType_id=@TypeID ",   dbconnection);
                SqlParameter   paraID   =   new   SqlParameter( "@TypeID ",   SqlDbType.VarChar);
                paraID.Value   =   _TypeID;
                cmd.Parameters.Add(paraID);
                //try
.....

------解决方案--------------------
///
///
///
public string TypeID
{
get { return _TypeID; }
set { _TypeID = value; }
}