Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Control.Init() in C#
Message
From
20/03/2004 17:03:51
 
 
To
19/03/2004 11:11:21
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00887934
Message ID:
00888237
Views:
10
>I'm looking for an event that is analogous to the init event with VFP controls. I want to do some enabling, disabling, etc based on the users permissions. For example, i want to test a textbox for the users permission to read, add, edit, delete, view, etc and then have the control displayed or not, enabled or not, etc.

Can't you subclass the control and override the constructor?

Another option, in your page_load event interate through the controls passing a reference to each control to some decorator class to populate these settings.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform