Using the Calendar control : showing a Usercontrol per day

L

Lars Siden

Hi,

I'd like to use the "DayRender" event on the calendar to load a usercontrol
for that particular day.

In "DayRender" I have the following code:

Control c = new Control();
c.Controls.Add(Page.LoadControl("ucDag.ascx"));
e.Cell.Controls.Add (c );

The control "ucDag.ascx" consist of a Datagrid that displays some events
from a database.

When I debug the project it looks like the "page load" on the usercontrol is
never run, why is that?

And what is the correct procedure having a usercontrol rendered per day in
for the calendar?

Best regards,

Lazze

Sweden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top