I am using the html list to help find specific areas on a map using leaflet. This is a normal html ul list but with an tag insert in between each line. I have also included the data-position and zoom attributes to pin-point a specific location on the map.
HTML list:
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a href="#" data-zoom="6" data-position="57.3666, -25.0008"> Orginal map.....</a></li>
<li role="presentation"><a href="#" data-zoom="12" data-position="54.3666,-9.0"> Irish Continental Shelf</a></li>
<li role="presentation"><a href="#" data-zoom="12" data-position="53.27,-9.91"> Irish Exclusive Economic Zone</a></li>
<li role="presentation"><a href="#" data-zoom="12" data-position="51.74404,-10.12931"> Irish Territorial Sea</a></li>
<li role="presentation"><a href="#" data-zoom="12" data-position="53.35547,-6.17153"> Irish Contiguous Zone</a></li>
</ul>
ASP DropDownList:
<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true" BackColor="BurlyWood">
<asp:ListItem Value="Navigation ToolBox Control">Irish Continental Shelf</asp:ListItem>
<asp:ListItem Value="Standard ToolBox Control">Irish Exclusive Economic Zone</asp:ListItem>
<asp:ListItem Value="Data ToolBox Control"> Irish Territorial Sea</asp:ListItem>
<asp:ListItem Value="Login ToolBox Control">Irish Contiguous Zone</asp:ListItem>
</asp:DropDownList>
Now i want to use a asp:Dropdown list but c# sharp dose not allow any tags. This means I can not link to a specific point on the map using data-postion or zoom.
Is there a way in C# to incorporate this feature?