This is a migrated thread and some comments may be shown as answers.

Shared Calendar displaying on every page

1 Answer 62 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Robert Cathey
Top achievements
Rank 1
Robert Cathey asked on 05 Mar 2008, 07:18 AM
I'll be using a lot of calendar controls in my application, so I thought the most efficient thing to do was to create a shared calendar on my Master Page that I can reference via Date Picker on all the other pages.

This works great, except that I get the calendar showing up where I have the place holder tag.

I attempted to modify the style of the calendar to display:none, but then the calendar doesn't show up when I click a Date Picker.

Is there a way to hide the shared calendar, but still have it show up when a Date Picker is clicked? Thanks

1 Answer, 1 is accepted

Sort by
0
Robert Cathey
Top achievements
Rank 1
answered on 05 Mar 2008, 07:25 AM
I was playing around and figured out a solution. Instead of changing the style of the control to display:none, I put the placeholder in a div and changed the style of the div to display:none. This way it doesn't show on the page, but can still be accessed by the Date Pickers. If there's a different way of doing it that would be better, please let me know. Thanks.
Tags
Calendar
Asked by
Robert Cathey
Top achievements
Rank 1
Answers by
Robert Cathey
Top achievements
Rank 1
Share this question
or