View Single Post
Old Mar 22nd, 2005, 9:27 AM   #3
see07
Programmer
 
Join Date: Oct 2004
Posts: 37
Rep Power: 0 see07 is on a distinguished road
I’ve continued working on my code, it’s now thus:


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();
}
}

Yet in last line: frm1.parent1.Example.Controls.Clear();
It’s giving me error: WUC_CreDes.WebForm1' doesn’t contains a definition to 'parent1'.

Example is a place holder contening both in WebForm1 and in WebForm2.

I’ll thank your help.

A.L.
__________________
<span style='color:red'>El Hombre que tiene Amigos, debe mostrarse Amigo...</span>
see07 is offline   Reply With Quote