Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security for tab pages
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01451863
Message ID:
01452605
Views:
34
Kevin,
I spoke too soon. The panel has a readonly property and I could have sworn it worked on the first one I tested but it is not working on the panels I am testing now. The first one may have been wishful thinking on my part. Do I need to secure each control individually?

The only other choice I have been able to figure out is to use object.dispose() to get rid of pages that I don't want them to see. However, this doesn't help if I want them to be able to have read-only access. It is also a headache because then I have to check all my set up code, such as initializing combo box indexes, to make sure it's not trying to do something on a tab page that has been disposed of. I did get this to work with minimum headache by just moving the code to the end of all the other initialization. A bit inefficient on the code side but easier for maintenance.

Suggestions? Thanks.

>Linda,
>
>>I have a Windows Form with a tab control. I would like to have separate security access on some of the tab pages but I don't see a way to generate a control GUID for the tab pages. Is this possible? I know I can drop a page based on the user's role access but it would be easier and more flexible for the users to be able to handle it with the MM security features. Thanks.
>>PS I have figured out that I can use a panel and set the security for everything on the panel. Still hoping to avoid an extra layer if possible, though.
>
>What you've done with the panel is the best approach
>
>Best Regards,
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform