J
Jeti [work]
I have made simple control which contains one Calendar control. The problem
is that the Calendar control does not behave correctly (doesn't have
hyperlinks) when my control renders... here's some of the code:
public class MyControl
{
private Calendar _calendar;
protected override void CreateChildControls()
{
_calendar = new Calendar();
_calendar.SelectedDate = DateTime.Now;
_base.CreateChildControls ();
}
protected override void OnPreRender(EventArgs e)
{
if (Page.Request["step"] == "3")
this.EnsureChildControls();
base.OnPreRender (e);
}
protected override void Render(HtmlTextWriter output)
{
_calendar.RenderControl (output);
}
}
i tried to inherit INamingContainer - didnt work.
How to make calendar work?
thank you...
is that the Calendar control does not behave correctly (doesn't have
hyperlinks) when my control renders... here's some of the code:
public class MyControl
{
private Calendar _calendar;
protected override void CreateChildControls()
{
_calendar = new Calendar();
_calendar.SelectedDate = DateTime.Now;
_base.CreateChildControls ();
}
protected override void OnPreRender(EventArgs e)
{
if (Page.Request["step"] == "3")
this.EnsureChildControls();
base.OnPreRender (e);
}
protected override void Render(HtmlTextWriter output)
{
_calendar.RenderControl (output);
}
}
i tried to inherit INamingContainer - didnt work.
How to make calendar work?
thank you...