Problem with Calendar webcontrol in a web custom control

Discussion in 'ASP .Net Building Controls' started by Jacob, Dec 17, 2003.

  1. Jacob

    Jacob Guest

    I'm building a web custom control, that should render out a calendar
    webcontrol. I'm using the following code...

    protected override void Render(HtmlTextWriter output)
    {
    System.Web.UI.WebControls.Calendar calendar = new Calendar();
    calendar.RenderControl(output);
    }

    The problem is that it only render out the calendar webcontrol without
    it's functionality. Fx. there are no links on each day etc.

    What do I do wrong?
     
    Jacob, Dec 17, 2003
    #1
    1. Advertising

  2. Hi ,

    Which browser u are using IE or Netscape?

    Regards
    Mahesh ChandraMouli
    Microsoft .NET MVP|MCAD
    >-----Original Message-----
    >I'm building a web custom control, that should render

    out a calendar
    >webcontrol. I'm using the following code...
    >
    >protected override void Render(HtmlTextWriter output)
    >{
    >System.Web.UI.WebControls.Calendar calendar = new

    Calendar();
    >calendar.RenderControl(output);
    >}
    >
    >The problem is that it only render out the calendar

    webcontrol without
    >it's functionality. Fx. there are no links on each day

    etc.
    >
    >What do I do wrong?
    >.
    >
     
    Mahesh ChandraMouli[MVP], Dec 19, 2003
    #2
    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. Guest
    Replies:
    2
    Views:
    755
  2. Peter

    Custom Calendar webcontrol

    Peter, Nov 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    544
    Peter
    Nov 3, 2005
  3. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    218
    Luis Ramírez
    Jul 6, 2004
  4. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    201
    Fabricio
    Sep 21, 2005
  5. Curt_C [MVP]

    Custom WebControl, custom property list

    Curt_C [MVP], Sep 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    193
    Curt_C [MVP]
    Sep 1, 2005
Loading...

Share This Page