Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM in user controls
Message
 
À
14/04/2004 15:14:49
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00894909
Message ID:
00895122
Vues:
16
Rex,

>Is anyone using MM with user controls. The mmBusinessWebPage class contains code to register business objects with the page and the wizards read the registered business objects. I want to be able to do this for user controls on a page. What do I need to do?

That depends on the functionality you want for your user controls. If you want MM .NET data binding, the you need to implement one of MM .NET's data binding interfaces (depending on the type of user control you're creating). These interfaces can be found in mmBindingInterfaces.cs and they are:

* ImmWebBinding
* ImmWebBinding
* ImmWebBindingSimple
* ImmWebBindingList
* ImmWebBindingDataGrid

You can look at the source code of different MM .NET Web Form controls to see examples of how to implement these interfaces. Rather than putting the binding code directly in the web controls, there is an mmWebBindingStrategy class that contains the actual binding code.

If you want to implement MM .NET security in a user control, you can implement the ImmSecurityBase interface. Again, you can take a look at existing MM .NET Web Form controls for examples on implementing this interface.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform