Formatting Calendar Extender

Discussion in 'ASP .Net' started by Wannabe, Feb 11, 2008.

  1. Wannabe

    Wannabe Guest

    I have a calendar extender that when I put it in an update panel, the
    formatting that I have in CSS, does not work. If I pull it out of my update
    panel, it looks fine. Is there something I can do to make the CSS formatting
    work for my calendar extender keep and the same format when inside an update
    panel that it has outside an update panel?
     
    Wannabe, Feb 11, 2008
    #1
    1. Advertising

  2. Hello Wannabe,

    Which css property do u use? The calendar CSS or ajaxToolkit:CalendarExtender
    CssClass ?

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    W> I have a calendar extender that when I put it in an update panel, the
    W> formatting that I have in CSS, does not work. If I pull it out of my
    W> update panel, it looks fine. Is there something I can do to make the
    W> CSS formatting work for my calendar extender keep and the same format
    W> when inside an update panel that it has outside an update panel?
    W>
     
    Michael Nemtsev [MVP], Feb 12, 2008
    #2
    1. Advertising

  3. Wannabe

    Wannabe Guest

    I am using the calendar extender CSSClass. Sorry, I missed including this
    before, but here is my CSS for this, and the HTML.

    <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
    <asp:ImageButton ID="imgStartDate" ImageUrl="../images/calendar.gif"
    runat="server" CausesValidation="False" />
    <ajaxToolkit:CalendarExtender id="CalendarExtender1" runat="server"
    TargetControlID="txtStartDate" PopupButtonID="imgStartDate"
    CssClass="datePicker"></ajaxToolkit:CalendarExtender>


    ..datePicker
    {
    position:relative;
    left:5px;
    }

    ..datePicker .ajax__calendar_container
    {
    background-color:White!important;
    border:1px solid blue!important;
    z-index:50000;
    }

    ..datePicker .ajax__calendar_hover .ajax__calendar_day
    {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc!important;}
    ..datePicker .ajax__calendar_hover .ajax__calendar_month
    {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc!important;}
    ..datePicker .ajax__calendar_hover .ajax__calendar_year
    {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc!important;}

    ..datePicker .ajax__calendar_hover .ajax__calendar_title
    {color:#0066cc!important;}
    ..datePicker .ajax__calendar_hover .ajax__calendar_today
    {color:#0066cc!important;}

    "Michael Nemtsev [MVP]" wrote:

    > Hello Wannabe,
    >
    > Which css property do u use? The calendar CSS or ajaxToolkit:CalendarExtender
    > CssClass ?
    >
    > ---
    > WBR,
    > Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
    >
    > "The greatest danger for most of us is not that our aim is too high and we
    > miss it, but that it is too low and we reach it" (c) Michelangelo
    >
    >
    > W> I have a calendar extender that when I put it in an update panel, the
    > W> formatting that I have in CSS, does not work. If I pull it out of my
    > W> update panel, it looks fine. Is there something I can do to make the
    > W> CSS formatting work for my calendar extender keep and the same format
    > W> when inside an update panel that it has outside an update panel?
    > W>
    >
    >
    >
     
    Wannabe, Feb 12, 2008
    #3
    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. BillE
    Replies:
    4
    Views:
    6,835
    Thomas Hansen
    Apr 18, 2007
  2. Abhilash

    AJAX Calendar extender issue

    Abhilash, Jun 12, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    5,254
    Abhilash
    Jun 14, 2008
  3. Steve Blain

    Calendar Extender Problem

    Steve Blain, Jun 24, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    572
    Steve Blain
    Jun 25, 2008
  4. George

    Calendar extender

    George, Jul 1, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    467
    densial
    Jul 1, 2008
  5. pvong

    AJAX - Calendar Extender Format

    pvong, Aug 1, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    589
    pvong
    Aug 1, 2008
Loading...

Share This Page