日期:2014-05-17  浏览次数:20438 次

如何给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……


非常感谢您的回答!