Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Controls
Message
De
08/03/2003 00:25:53
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Divers
Thread ID:
00759524
Message ID:
00763210
Vues:
36
Hector,

Yep, found the solution ... and, coincidentally, it's from the same link you just posted here (I found it two days ago). Anyway, it works like a charm, so I'm happy! Thanks!!

~~Bonnie


>Bonnie,
>
>I ran accross this article http://www.fawcette.com/vsm/2003_04/magazine/columns/aspnet/ and thought that you might be interested on it.
>
>Although it seems that you've found the solution for your problem. Anyway, better late than never :)
>
>
>>Hi Cathi,
>>
>>Any idea how bad of a performance hit that might be? Only problem is (and I haven't tried it yet), I'm guessing that Reflection won't get me the path too, will it? If I have to hard-code a virtual path, then I guess I have to.
>>
>>I guess now I'm just wondering if there is any other way of doing this other than using the LoadControl() method.
>>
>>~~Bonnie
>>
>>
>>>Hi Bonnie,
>>>
>>>If you don't want to hard-code the name of the ascx file and you don't want to use a table, how about using Reflection to get at the name of the class for your usercontrol? You will incur a performance hit but you could interogate the assembly to get the name of the class then use it to figure out the name of the ascx file.
>>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform