c# - Tooltip on asp:dropdown -
c# - Tooltip on asp:dropdown -
i have user command loads asp:dropdownlist via asp:datasource: need show tooltip on each dropdown value.
here code:
<asp:dropdownlist id="lstbusinessunit" runat="server" appenddatabounditems="true" width="200px" datasourceid="sqlbusinessunit" datatextfield="sbusunitdisplay" datavaluefield="sbusunitcode" > <asp:sqldatasource id="sqlbusinessunit" runat="server" connectionstring="<%$ connectionstrings:database %>" selectcommand="select [sbusunitcode],[sbusunit], [sbusunitdisplay] [tbusinessunits] order [sbusunitdisplay]" /> what need sbunit tooltip each value. please help. thanks.
you should add together attribute title each of listitem in code behind
foreach (listitem item in lstbusinessunit.items) { item.attributes.add("title", "your tooltip"); } c# asp.net drop-down-menu tooltip html.dropdownlistfor
Comments
Post a Comment