Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting a tooltip using Reflection
Message
De
24/01/2006 05:17:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01089408
Message ID:
01089659
Vues:
16
>>Eric,
>>Something like this works for me:
>>
>> private void SetPropertyValue(string pstrControlName, string pstrPropName, string pstrValue)
>> {
>>	Control c = this.FindControl(pstrControlName);
>>	if ( c != null )
>>	{
>>		PropertyInfo pi = c.GetType().GetProperty(pstrPropName,pstrValue.GetType());
>>		if (pi != null && pi.CanWrite)
>>			pi.SetValue(c,pstrValue,null);
>>	}
>> }
>>
Cetin
>
>Have you tried it with Tooltip? That kind of code is working for some properties like Text but not for Tooltip.

Tooltip? I don't know where in ASP.Net tooltip is yet and never tried.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform