I've got a container that has a few things. Of them, one is a button group with a drop down that is dynamically populated using C#.
This was working at one point, and then suddenly no longer works without any changes in the code.
Keep in mind, for the C# for-loop, I do get a "1" in the drop down, but I cannot drop down and choose any other number. I have another button object that presents the "tableCount", so I know the for-loop should increment to at least that number. I click the "V" (down arrow) and nothing is presented.
ASP.NET code snippet:
<div class="btn-group">
<a href="#" id="AdminIndexSelect" runat="server" class="btn btn-default" style="height:25px; width:30px; padding:1px; text-align: center; vertical-align: middle;">-</a>
<a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="height:25px; width:30px; padding:1px; text-align: center; vertical-align: middle;"><span class="caret"></span></a>
<ul id ="AdminIndexDropDown" class="dropdown-menu" runat="server">
<asp:Literal runat="server" id="AdminIndexDropDownList"></asp:Literal>
</ul>
</div>
C# Snippet:
for(int i = 1 ; i <= tableCount ; i++){
string listText = "";
listText += "<li role=\"presentation\">";
listText += "<a role=\"menuitem\" tabindex=\"-1\" href=\"#\">";
listText += i.ToString();
listText += "</a></li>";
AdminIndexDropDownList.Text += listText;
}
