Vote count:
0
I am dynamically loading the menu and specifying target=self. But on clicking the menu, the page is loading in the new tab. Please can anyone say me how to load page in active window? Below is the code in aspx page.
<table height="inherit" width="175px" border="1px">
<%
for (int ni = 0; ni < cMenus.GetLength(0); ni++)
{
if (cMenus[ni, 1] != "")
{
%>
<% ="<tr><td style='background-color:White'><b><a href='" + cMenus[ni, 1] + "?Flag=0&RequestId=" + cMenus[ni, 2] + "' style='color:#F69D29;font-weight:bold;' target='_self'>" + cMenus[ni, 0] + "</a> </b></td></tr>"%>
<% }
else
{%>
<tr><td style=" background-color:#F69D29" align="center"> <span style="color:White; font-size:20px; font-weight:bold;"><% =cMenus[ni, 0] %></Span></td></tr>
<%}
}%>
</table>
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire