A warning is a warning. Your page is displayed correctly only because the browser is not too strict in the HTML rules, but this may change in the future. For this reason, you should try to maintain HTML compatibility and take warnings seriously. In this case, I would suggest replacing the <div> tags with <li> <div> tags and styling them to prevent fields and markers (I assume that you are using <div> instead of <li> in the first place).
To achieve what you want, apply this CSS style to your list:
.your-ul { list-style: none; } .your-ul li { position:relative; margin-left: 0; display: inline-block; }
Your HTML / ASPX code will look like this:
<ul class="your-ul"> <li><asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Ilk</asp:LinkButton></li> <li><asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click"> << </asp:LinkButton></li> </ul>
source share