Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Formatting Calendar Extender

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wannabe - 11 Feb 2008 22:31 GMT
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?
Michael Nemtsev [MVP] - 12 Feb 2008 11:07 GMT
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 - 12 Feb 2008 13:22 GMT
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;}

> Hello Wannabe,
>
[quoted text clipped - 14 lines]
> W> when inside an update panel that it has outside an update panel?
> W>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.