there I found a solution
in the drop-down menu I put
<div id="topnav">
<ul>
<li class="active"><a href="#">Home</a></li>
<li><a id="A2047" runat="server" href="WebForm2.aspx">PUERTAS</a></li>
<li><a id="A2048" runat="server" href="#">URUARIO</a></li>
<li><a id="A2049" runat="server" href="#">SEGURIDAD</a>
<ul>
<li><a id="A2050" runat="server" href="#">Link 1</a></li>
<li><a id="A2051" runat="server" href="#">Link 2</a></li>
<li><a id="A2052" runat="server" href="#">Link 3</a></li>
</ul>
then the code looked for the menu item and took it out
Page_Load
1º
A2047.Visible = false;
A2048.Visible = false;
A2049.Visible = false;
then with the accesses that the user can see, I visualize them
DataTable access = (DataTable)Session["MyAccess"];
//esto recorre la tabla (Datatable)
for (int i = 0; i < access.Rows.Count; i++)
{
string door = access.Rows[i]["D_NO"].ToString();
if (door == "2049")
{
A2049.Visible = true;
}
}
or it can also be done by Css
//A2049.Attributes["class"] = "yourCssClass";