J
John A Grandy
For ASP.NET UserControls , is it possible to provide multiple overrides of
the intrinsic handler methods (those for which the delegate that wires the
event to the handler is built-in , such as Init , Load , PreRender ,
Render ) ... ?
I need to create various .ascx controls on-the-fly , calling Init() methods
with different signatures ...
I think the syntax might be :
new public void Init(int param1)
{
Init(param1,string.Empty);
}
new public void Init(int param1, string param2)
{
....
....
}
And the intrisic Init() handler method (which has no params) need not be
explicitly specified.
the intrinsic handler methods (those for which the delegate that wires the
event to the handler is built-in , such as Init , Load , PreRender ,
Render ) ... ?
I need to create various .ascx controls on-the-fly , calling Init() methods
with different signatures ...
I think the syntax might be :
new public void Init(int param1)
{
Init(param1,string.Empty);
}
new public void Init(int param1, string param2)
{
....
....
}
And the intrisic Init() handler method (which has no params) need not be
explicitly specified.