Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing controls of a WebForm
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Listing controls of a WebForm
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01079556
Message ID:
01079556
Vues:
73
Hi

I have to create a small tool (a Windows form application) that will :
1. open an assembly containing ASP.Net web forms
2. list the Web Forms in it
3. list the controls in the form (recursively if the control is a container)

I have already made a tool like this for Windows forms application.

Using Reflection, I have been able to open the assembly and list the Web Forms it contains.

I am now jammed on the last topic (listing controls of the selected web form). I cannot use Activator.CreateInstance(tType) like I did with my Windows version of that tool because most classes are abstract.

Any one can help on this. An example in VB.Net would be the best but C# would be OK too.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform