What is the simplest solution here?
views:
20answers:
3
A:
According to the documentation Init
is the very first event invoked on a control. In other words: there are no extension points between the constructor and the OnInit()
method call.
Jørn Schou-Rode
2009-11-19 20:25:28
A:
I don't believe that it's possible.
Here is the execution lifecycle:
http://msdn.microsoft.com/en-us/library/aa719775%28VS.71%29.aspx
Maybe if you share what you are trying to accomplish someone could offer an alternative approach.
cagreen
2009-11-19 20:26:30
+1
A:
This is probably the closest you can get:
protected override void OnInit(EventArgs e)
{
//your code here
base.OnInit(e);
}
Bryan
2009-11-19 22:47:34