Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a textbox for which I have added a calendar extender. It works fine, but when there is one more textbox below the date textbox and
then when the calendar appears, it shows up behind the second field. Is there a solution for this?
Posted
Updated 3-Apr-17 3:07am
v2

This helped me. Much less code and works!
CalendarExtender day style css in asp.net ajax[^]
 
Share this answer
 
Comments
CHill60 3-Apr-17 9:18am    
Answering 6 year old questions with a link to a blog is often interpreted (or mis-interpreted) as spam. You will attract downvotes if you make a habit of it, or your account could be suspended. This can often be avoided by a few more words in the solution e.g. "I know this is an old post but this solution contains much less code than the other suggestions and does work. It helped me"
Funster 3-Apr-17 9:36am    
My apologies CHill60. My intent is clearly to help others as I have had the same problem and the post helped me to quickly resolve the issue I had. Thus posting the answer so that others do not have to wonder or get frustrated not getting the answer. Definitely put more words in next time as suggested. Thank you.
CHill60 3-Apr-17 9:40am    
No problem - I understood. Unfortunately the down-voter didn't give you the benefit of the doubt though (it wasn't me)
Try setting the z-Index of the popup to maximum number, say 9999999
 
Share this answer
 
You can add style to the calender.

Style code:
<style type="text/css">
        .cal_Theme1 .ajax__calendar_container
        {
            background-color: #e2e2e2;
            border: solid 1px #cccccc;
        }
        .cal_Theme1 .ajax__calendar_header
        {
            background-color: #ffffff;
            margin-bottom: 4px;
        }
        .cal_Theme1 .ajax__calendar_title, .cal_Theme1 .ajax__calendar_next, .cal_Theme1 .ajax__calendar_prev
        {
            color: #004080;
            padding-top: 3px;
        }
        .cal_Theme1 .ajax__calendar_body
        {
            background-color: #e9e9e9;
            border: solid 1px #cccccc;
        }
        .cal_Theme1 .ajax__calendar_dayname
        {
            text-align: center;
            font-weight: bold;
            margin-bottom: 4px;
            margin-top: 2px;
        }
        .cal_Theme1 .ajax__calendar_day
        {
            text-align: center;
        }
        .cal_Theme1 .ajax__calendar_hover .ajax__calendar_day, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_month, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_year, .cal_Theme1 .ajax__calendar_active
        {
            color: #004080;
            font-weight: bold;
            background-color: #ffffff;
        }
        .cal_Theme1 .ajax__calendar_today
        {
            font-weight: bold;
        }
        .cal_Theme1 .ajax__calendar_other, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_today, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_title
        {
            color: #bbbbbb;
        }
  </style>


and then on calender control call this style:
eg.
Calext_css="cal_Theme1" Caltxt_css="text"
 
Share this answer
 
Comments
Sandeep Mewara 27-Jan-11 0:13am    
Can you please elaborate on how this will help? or which part of your answer is resolving OP's issue?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900