我用  L1.ToolTip = L1.Text不管用 为什么

解决方案 »

  1.   

    l1.Attributes["title"] = l1.Text;
      

  2.   

    l1.Attributes["title"] = l1.Text;
    --------
    agree
      

  3.   

    我用的是VB 
    L1.Attributes.Add("title", L1.Text)也不起作用
      

  4.   

    to raingod(皆大欢喜)
    我在c#page_load中试过
    没问题
      

  5.   

    我在VB中用 Me.TextBox1.ToolTip = Me.TextBox1.Text,測試好用的
      

  6.   

    btnInsert.Attributes.Add("title","test");
      

  7.   

    是不是在頁面加載的時候,你的textBox是空值?
      

  8.   

    btnInsert.Attributes.Add("title","test");
     我这样写的 就是不行这样写
    Me.TextBox1.ToolTip = Me.TextBox1.Text  可以 但是 如果改内容了 提示还是原来的内容!
    谢谢大家了!
      

  9.   

    http://blog.csdn.net/goody9807/articles/156754.aspx