I have a menu.js file in solution, and a masterpage.aspx:
One of the codeblock of masterpage as follows
<body>
<table id="table2" blah blah>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img id="img" blah blah />
<td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height: 14px">
<%SelectJSMenu%>
</td>
</tr>
</table>
</body>
In code behind masterpage.aspx.vb
Public Sub SelectJSMenu()
{
Select Case System.Configration.ConfigurationManager.AppSettinges("stage")
Case 1
Response.Output.Write("script") 'loading menu.js file via script
Case 2
Response.Output.Write("scirpt") 'loading another menu2.js file via this script
}
What I have to do is to check the user permission and write this menu if user is not who he claims to be, then load the second.
<td>tags in the first table. It's a long time since I made somehtml, but It appears to me a problem.