A
Amar
Hi,
I have a user Control "Login_Test" which inherits from UserControl.
Within a page i am using it, i locate it with the following code
Recalculate(this);
private void Recalculate(Control Ctrl){
foreach (Control ct in Ctrl.Controls){
if (ct.GetType().ToString() == "ASP.Login_Test_ascx"){
((Login_Test)cr).ReCalculateBalance();
}else{
Recalculate(ct);
}
}
}
And i execute function ReCalculateBalance() of user control. That
works perfect when i am using codebehind. Now i have decided to
make everything inline code with no Codebehing, for better management
and i get the following error
"The type or namespace name 'Login_Test' could not be found (are you
missing a using directive or an assembly reference?)"
My page and the user control is at the same directory so there is no
problem with reference and i cant find out what might be the problem,
Any ideas??
Thanks
I have a user Control "Login_Test" which inherits from UserControl.
Within a page i am using it, i locate it with the following code
Recalculate(this);
private void Recalculate(Control Ctrl){
foreach (Control ct in Ctrl.Controls){
if (ct.GetType().ToString() == "ASP.Login_Test_ascx"){
((Login_Test)cr).ReCalculateBalance();
}else{
Recalculate(ct);
}
}
}
And i execute function ReCalculateBalance() of user control. That
works perfect when i am using codebehind. Now i have decided to
make everything inline code with no Codebehing, for better management
and i get the following error
"The type or namespace name 'Login_Test' could not be found (are you
missing a using directive or an assembly reference?)"
My page and the user control is at the same directory so there is no
problem with reference and i cant find out what might be the problem,
Any ideas??
Thanks