UserControl dynamique

tobleronne Messages postés 104 Date d'inscription vendredi 8 août 2003 Statut Membre Dernière intervention 1 mars 2005 - 23 févr. 2005 à 22:03
cs_Bidou Messages postés 5487 Date d'inscription dimanche 4 août 2002 Statut Membre Dernière intervention 20 juin 2013 - 23 févr. 2005 à 22:32
Bonjour,





je souhaite inserer dynamiquement un usercontrol. et rien ne se charge ?!?



voila mon code :



UserControl oUserControl;

oUserControl = (UserControl)oUserControl.LoadControl("~/tableList.ascx");

myPlaceHolder.Controls.Add(oUserControl);



Merci

2 réponses

tobleronne Messages postés 104 Date d'inscription vendredi 8 août 2003 Statut Membre Dernière intervention 1 mars 2005
23 févr. 2005 à 22:26
ca marche, mon post back etait mal reglé !!!
0
cs_Bidou Messages postés 5487 Date d'inscription dimanche 4 août 2002 Statut Membre Dernière intervention 20 juin 2013 61
23 févr. 2005 à 22:32
Bonsoir,
Euh, si c'est pour une application Web en aspx, c'est le faux forum.
(voire http://www.aspfr.com)

[Pub] http://www.csharpfr.com/auteurdetail.aspx?ID=13319 [\Pub]
C# forever
0
Rejoignez-nous