Forums
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><authentication mode="Windows" />
<customErrors mode="On" />
<compilation debug="true"/></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><MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>f runat="server" Expression='<%# (session("adminRights" = "11" %>'>
<ContentsTemplate><a href="../mPages/mContent_edit.aspx?PageID=17"><img src="../../images/nav/editAsterix.gif" alt="Edit" border="0" /></a></ContentsTemplate></MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>f></font id=code></pre id=code>
TIA