当前位置: 代码迷 >> ASP.NET >> 怎么给asp:RadioButtonList中的每项添加单独的ToolTip
  详细解决方案

怎么给asp:RadioButtonList中的每项添加单独的ToolTip

热度:6117   发布时间:2013-02-25 00:00:00.0
如何给asp:RadioButtonList中的每项添加单独的ToolTip
现在有个需求,需要给asp:RadioButtonList控件里的每项asp:ListItem添加单独的ToolTip也就是鼠标悬停的提示信息,给RadioButtonList倒是可以添加,但每一项的提示信息都是一样的,请问有什么方法没有?谢谢!


------最佳解决方案--------------------------------------------------------

    protected void Page_Load(object sender, EventArgs e)
    {
        RadioButtonList1.Items[0].Attributes.Add("title", "111");
        RadioButtonList1.Items[1].Attributes.Add("title", "111");
    }

------其他解决方案--------------------------------------------------------
引用:
C# code?12345    protected void Page_Load(object sender, EventArgs e)    {        RadioButtonList1.Items[0].Attributes.Add("title", "111");        RadioButtonList1.Items[1].Attributes.Add……


非常感谢您的回答!
  相关解决方案