N
Nigil Chua
Hi Guys,
I would like to inherited the MethodCls for both MasterPage and Page
But got the multiple base interface exception.
pubilc class MethodCls
{
}
public class Master:System.Web.UI.MasterPage,MethodCls
{
}
public class Page:System.Web.UI.Page,MethodCls
{
}
My Closest is solution is as follow. am I doing the correct way? or can
interface solve my issues as well?
cos I would like the MethodCls to reflect both Master and Page classes.
pubilc class MethodCls
{
}
public class Master:System.Web.UI.MasterPage
{
MethodCls _MethodCls=new MethodCls();
public MethodCls MyMethod
{
get{return _MethodCls;}
set {_MethodCls=value;}
}
}
public class Page:System.Web.UI.Page
{
MethodCls _MethodCls=new MethodCls();
public MethodCls MyMethod
{
get{return _MethodCls;}
set {_MethodCls=value;}
}
}
Best Regards.
Nigil Chua
I would like to inherited the MethodCls for both MasterPage and Page
But got the multiple base interface exception.
pubilc class MethodCls
{
}
public class Master:System.Web.UI.MasterPage,MethodCls
{
}
public class Page:System.Web.UI.Page,MethodCls
{
}
My Closest is solution is as follow. am I doing the correct way? or can
interface solve my issues as well?
cos I would like the MethodCls to reflect both Master and Page classes.
pubilc class MethodCls
{
}
public class Master:System.Web.UI.MasterPage
{
MethodCls _MethodCls=new MethodCls();
public MethodCls MyMethod
{
get{return _MethodCls;}
set {_MethodCls=value;}
}
}
public class Page:System.Web.UI.Page
{
MethodCls _MethodCls=new MethodCls();
public MethodCls MyMethod
{
get{return _MethodCls;}
set {_MethodCls=value;}
}
}
Best Regards.
Nigil Chua