Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Control.Init() in C#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00887934
Message ID:
00888498
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform