Hi, i am having a few problems migrating my app from .net 1.1 to 2.0.
i have 2 user controls (ascx) and im trying to call a function from one of the controls.
in 1.1 this is how i reference the other control
templates.maintenance.ucExpandTree UcExpandTree = (templates.maintenance.ucExpandTree) LoadControl(ResolveUrl("../maintenance/ucExpandTree.ascx"));
once declared i call a function in the other page
which passes a data row to the function
UcExpandTree.drawRows(dr);//calls the other user control
//the code in the other usercontrol
public void drawRows(System.Data.DataRow dr)
{
// do something
}
this works fine in .net 1.1 but when i try and add it to 2.0 it wont let me reference the drawRows function.
maybe there is a simple solution to this, any help would be greatly appreciated . as its driving me insane.
thanks in advance
i have 2 user controls (ascx) and im trying to call a function from one of the controls.
in 1.1 this is how i reference the other control
templates.maintenance.ucExpandTree UcExpandTree = (templates.maintenance.ucExpandTree) LoadControl(ResolveUrl("../maintenance/ucExpandTree.ascx"));
once declared i call a function in the other page
which passes a data row to the function
UcExpandTree.drawRows(dr);//calls the other user control
//the code in the other usercontrol
public void drawRows(System.Data.DataRow dr)
{
// do something
}
this works fine in .net 1.1 but when i try and add it to 2.0 it wont let me reference the drawRows function.
maybe there is a simple solution to this, any help would be greatly appreciated . as its driving me insane.
thanks in advance