Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Inheritance?
Message
De
17/06/2010 13:53:50
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
17/06/2010 13:01:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01469439
Message ID:
01469458
Vues:
52
>Hi,
>
>I am designing a web page that is to add an Insurance Policy. The Policy can have three different people associated with it: the Insured, the Owner and the Payor. The details for each of these is exactly the same so I want to create a standard interface for a "Person", then drop it 3 times on my ASP page and set each one to be bound to different data.
>
>Is this possible? Or is there another way that I am supposed to be thinking?

Very possible and I do it often. What you want to create is a "WebUserControl" and put all the controls you want on there. Call it say "ctrlContact". Then on your ASP.net form you can add this control as many times as you want. You will probably need to add a property or two to that control to allow you to set the binding sources at runtime differently.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform