Using Location path Security in Web.config with Param=1?

  • Thread starter Thread starter luqman
  • Start date Start date
L

luqman

I am using one common aspx file for different menus in ASP.Net and I want to
restrict some Menus.

For example: I want to Allow menu1.aspx?param=1 to users who have MENU1
Role, and menu1.aspx?param=2 to users who have MENU2 Role, but web.config is
not accepting location paths with Param ?

Pages which don't have param are working fine, and their relative menus hide
automatically, because I am using SecurityTrimmingEnabled Feature of
XmlSiteProvider.

Any idea please?

Best Regards,

Luqman
 
I am using one common aspx file for different menus in ASP.Net and I want to
restrict some Menus.

For example: I want to Allow menu1.aspx?param=1 to users who have MENU1
Role, and menu1.aspx?param=2 to users who have MENU2 Role, but web.config is
not accepting location paths with Param ?

Pages which don't have param are working fine, and their relative menus hide
automatically, because I am using SecurityTrimmingEnabled Feature of
XmlSiteProvider.

Any idea please?

Best Regards,

Luqman

I think you need to check it in the code

<% if User.IsInRole("admin") then %>
.... Allow menu1.aspx?param=1 ...
<% end if %>
 
Back
Top