Forums

ASP

This topic is locked

restrict access asp.net

Posted 19 Jul 2006 16:09:33
1
has voted
19 Jul 2006 16:09:33 Design Team posted:
A .net question if anyone can help? I am using windows authentication in my web.config file:
<pre id=code><font face=courier size=2 id=code>&lt;authentication mode="Windows" /&gt;
&lt;customErrors mode="On" /&gt;
&lt;compilation debug="true"/&gt;</font id=code></pre id=code>

but I need to restrict access to a single file (depending on user admin rights). Is this possible? Currently I have links to that page which are only viewable by access rights:
<pre id=code><font face=courier size=2 id=code>&lt;MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>f runat="server" Expression='&lt;%# (session("adminRights" = "11" %&gt;'&gt;
&lt;ContentsTemplate&gt;&lt;a href="../mPages/mContent_edit.aspx?PageID=17"&gt;&lt;img src="../../images/nav/editAsterix.gif" alt="Edit" border="0" /&gt;&lt;/a&gt;&lt;/ContentsTemplate&gt;&lt;/MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>f&gt;</font id=code></pre id=code>
TIA

Reply to this topic