Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design-Time supports programming
Message
De
18/06/2004 08:08:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Design-Time supports programming
Divers
Thread ID:
00914966
Message ID:
00914966
Vues:
65
Hello,

I’ve created my own Label with specifications for my system and I compiled this in a dll. Now when I create a new ASP form, I have only to import my assembly whit all my components. I put some design-time supports to my components. That give the advantage that my properties are placed automatically in the HTML designer.

I put this Design-time attribute on my label class:

ToolboxData()

This set the Text property with the fowling expression '<%# objText["baselabel"].ToString()' on the HTML designer. Once the object placed on the form I only need to change the ID property of my control trough the property browser butI want that the name is also changed in the expression on the Text property.
Example:

Before

....id=Baselabel1 runat="server" Text='<%# objText["Baselabel11"].ToString()' >....

After

...id=NewName runat="server" Text='<%# objText["NewName"].ToString()'>...

Somebody knows if this is possible? Has somebody good knowledge with design-time support programming. I try to found some examples for Design-Time programming. I found a book that had some examples (Building ASP.Net Server controls) and some on the Internet but I need some more and it’s really hard to found some good examples in VS help files for this.

Thanks for any help

Regards

david
Répondre
Fil
Voir

Click here to load this message in the networking platform