首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-12-17 
如何给asp:RadioButtonList中的每项添加单独的ToolTip现在有个需求,需要给asp:RadioButtonList控件里的每

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


非常感谢您的回答!

热点排行