Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restrict access to custom controls
Message
De
26/08/2005 05:33:39
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Pays-Bas
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Titre:
Restrict access to custom controls
Divers
Thread ID:
01044225
Message ID:
01044225
Vues:
73
Hello,

I'm building an ASP.NET application with just one page (default.aspx). This page works like a template page which loads a specific user control (.ascx) when the user selects a menu item. These ascx files are organized in subdirectories. I want to restrict access to the ascx files in these subdirectories to certain NT groups. I know it is possible to restrict access to aspx files in subdirectories in the web.config like this:
<configuration>
	<location path="somesubdir">
		<system.web>
			<authorization>
				<allow roles="somegroup" />
				<deny users="*" />
			</authorization>
		</system.web>
	</location>
</configuration>
This works file for aspx files, but has no affect on ascx files.
Is there a way to restrict access to ascx files like the forementioned way for aspx files or should I go another route?
Any ideas?


TIA,

Martin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform