Click here to Skip to main content
15,885,216 members
Articles / Web Development / IIS

Applying Security to Server controls

Rate me:
Please Sign up or sign in to vote.
1.80/5 (2 votes)
11 Jan 2008CPOL2 min read 22.1K   95   18  
You may have to give access or hide controls based on the user logged in. This article would help you write custom code to show/hide or enable/disable controls
<?xml version="1.0" encoding="utf-8" ?>
<Access>
	<DataTable>
		<UserTypeCode>1</UserTypeCode>
		<ModulePageFeatureCode>2</ModulePageFeatureCode>
	</DataTable>
	<DataTable>
		<UserTypeCode>1</UserTypeCode>
		<ModulePageFeatureCode>4</ModulePageFeatureCode>
	</DataTable>
	<DataTable>
		<UserTypeCode>1</UserTypeCode>
		<ModulePageFeatureCode>7</ModulePageFeatureCode>
	</DataTable>
	<DataTable>
		<UserTypeCode>1</UserTypeCode>
		<ModulePageFeatureCode>9</ModulePageFeatureCode>
	</DataTable>
	<DataTable>
		<UserTypeCode>1</UserTypeCode>
		<ModulePageFeatureCode>1</ModulePageFeatureCode>
	</DataTable>
</Access>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer SATYAM
United States United States
Enjoy developing/Architecting the software systems

Comments and Discussions