G
Guest
Hi, All,
I'm having problems getting OnInit to fire in my
UserControl, when I use a custom template to render the
control. The control will render to the browser and it
wasn't until I needed to perform some initialization in
the OnInit event did I realize that this event was never
firing.
**********************************************************
//Template class
Public Class myTemplate : Page
{
Control vMenubar;
Public Control VMenubar
{
get{Return vMenubar;}
Set{vMenubar = value;}
}
protected override void Render(HtmlTextWriter write)
{
I'm having problems getting OnInit to fire in my
UserControl, when I use a custom template to render the
control. The control will render to the browser and it
wasn't until I needed to perform some initialization in
the OnInit event did I realize that this event was never
firing.
**********************************************************
//Template class
Public Class myTemplate : Page
{
Control vMenubar;
Public Control VMenubar
{
get{Return vMenubar;}
Set{vMenubar = value;}
}
protected override void Render(HtmlTextWriter write)
{