
22/03/2005, 09:17
|
 | | | Fecha de Ingreso: abril-2004 Ubicación: México, D.F.
Mensajes: 112
Antigüedad: 20 años, 9 meses Puntos: 0 | |
He seguido trabajando con el código, ahora estoy aquí:
public static bool Hay_PostBack(System.Web.UI.Page parent1, string w1,
string w1cx,
string w1ID,
string w2,
string w2cx,
string w2ID)
{
WUC_CreDes.WebForm1 frm1;
WUC_CreDes.WebForm2 frm2;
string fofoi = parent1.GetType().ToString();
if(fofoi == "ASP.WebForm1_aspx")
{
frm1 = (WUC_CreDes.WebForm1) parent1;
frm1.parent1.Example.Controls.Clear();
}
}
Sin embargo en la última línea: frm1.parent1.Example.Controls.Clear();
Me da el error: 'WUC_CreDes.WebForm1' no contiene una definición paera 'parent1'.
Example es un place holder contenido tanto en WebForm1 como en WebForm2.
Agradeceré vuestra ayuda.
A.L.
__________________ El hombre que tiene amigos ha de mostrarse amigo.... |