Information générale
Titre:
Design-Time supports programming
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement