Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Control.Init() in C#
Message
De
20/03/2004 17:03:51
 
 
À
19/03/2004 11:11:21
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00887934
Message ID:
00888237
Vues:
11
>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform