Using the Calendar control : showing a Usercontrol per day

Discussion in 'ASP .Net' started by Lars Siden, Oct 22, 2003.

  1. Lars Siden

    Lars Siden Guest

    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
    Lars Siden, Oct 22, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nail
    Replies:
    0
    Views:
    1,537
  2. =?Utf-8?B?S01aX3N0YXRl?=

    Quick one - Is SESSION per browser instance or per IP Address?

    =?Utf-8?B?S01aX3N0YXRl?=, Apr 4, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    5,878
    gerry
    Apr 10, 2006
  3. Andy
    Replies:
    1
    Views:
    700
  4. Replies:
    2
    Views:
    274
  5. Parthiv Joshi
    Replies:
    1
    Views:
    658
    Samuel L Matzen
    Jul 6, 2004
Loading...

Share This Page