Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Control.Init() in C#
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00887934
Message ID:
00888498
Views:
12
In Code magazine, March/April 2004 p10 "Give Your Forms A Base", D. Kurata describes such a sequence

>>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
Reply
Map
View

Click here to load this message in the networking platform