晕,所有有Text或Caption属性的控件都可以啊。楼主问的太简略了吧?都不知道你到底要干什么

解决方案 »

  1.   

    用户控件
    是可以根据需要添加属性的属性如果是public,就可以在html代码中使用比如public class myUserControl : System.Web.UI.UserControl
    {
      public int Mode { get; set; }
    }可以这样用:
    <uc1:myUserControl id="myUserControl1" runat="server" Mode="1"></uc1:myUserControl>
      

  2.   

    动态调用CONTROL 当然可以啊. 随你怎么搞.
      

  3.   

    Page有一个方法Page.LoadControl()用于读取用户控件的
      

  4.   

    謝謝,第一次用用戶控件,to uno ,若是動態載入用戶控件,這些屬性應該怎樣賦值
      

  5.   

    用代码,访问类/对象的属性myUserControl.Mode = (int);
      

  6.   

    System.Web.UI.Control ctrl = Page.LoadControl("myUserControl.ascx");
    if (ctrl is myUserControl)
    {
      myUserControl myUserControl1 = (myUserControl)ctrl;
      myUserControl1.Mode = ...;
    }