473,506 Members | 17,176 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp:calendar problem

Hello there!

I use an asp:calendar in my page and I have an issue with it...

when my page is loaded, if there is no date in the querystring, I set
the calendar's selected date to Today

and if there is a date in the querystring, I set the calendar to this
date.

The code works fine and all, but when I set the calendar's date to a
date that is out of the current month (march, as for now) when the
calendar shows up in the page, it's still at the March month

and then, if I scroll in the months and years to the date where I set
it, the date is selected correctly

is there something I'm missing there?

Kysonel

Mar 9 '06 #1
2 1059
I think that you also need to set the VisibleDate property. You can set this
to the same value that you set the SelectedDate to, this should solve your
problem. If you have any problems doing this let me know. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

<bo*******@gmail.com> wrote in message
news:11**********************@j52g2000cwj.googlegr oups.com...
Hello there!

I use an asp:calendar in my page and I have an issue with it...

when my page is loaded, if there is no date in the querystring, I set
the calendar's selected date to Today

and if there is a date in the querystring, I set the calendar to this
date.

The code works fine and all, but when I set the calendar's date to a
date that is out of the current month (march, as for now) when the
calendar shows up in the page, it's still at the March month

and then, if I scroll in the months and years to the date where I set
it, the date is selected correctly

is there something I'm missing there?

Kysonel

Mar 10 '06 #2
Thanks a lot!!

Mar 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3333
by: Al | last post by:
Hello, I am trying to use asp calendar by opening the asp in a modal window (window.showmodaldialog). Page behaves erratic when try to move between dates and months. When I click a new window opens....
1
1310
by: Greg | last post by:
How do you get rid of the days of the month that are not in the month selected in a calendar control? For example, I have a calendar control that shows November, at the beginning and end of the...
1
1562
by: suresh | last post by:
Hi all, I have a little problem with an ASP Calendar Control within a frame. When I click the next month or previous month button it kicks the calendar out of the frame and shows it in a normal...
2
1605
by: js | last post by:
Any way to modify an <asp:Calendar> tag with parameters on the fly? Seems I'm not allowed to use the <% =xxx %> substitution for parameters to the <asp:Calendar> tag. Do I have to do code...
0
1074
by: Mark Rae | last post by:
Hi, Is there any way to show the SelectedDay as, say, a red circle? Something like this: http://www.visualasp.com/vcdl/monthview/monthview_multiple_monthviews.asp N.B. I realise that the...
3
2901
by: WB | last post by:
Hi, Is it poosible to build an appointment planner on a webform using asp:Calendar control? I would like to display one month at a time and show all the appointments scheduled in every day...
3
1089
by: tranky | last post by:
Hi, i'm an italian programmer. I've a problem with asp:calendar control. I'd like to click into a day of this calendar and show in a asp:label the day. I tried with this code_
2
2654
by: Mark Rae | last post by:
Hi, Has anyone found a fix for the <asp:Calendar/ CSS bug whereby certain attributes (mainly colours) are not rendered correctly? E.g. <asp:Calendar ID="calTest" runat="server"...
1
2824
by: phpmel | last post by:
Hi guys, I have an asp calendar control, text box, calendar icon, eraser icon all within an update panel. The calendar works fine, postbacks are handled without the flickering of the screen etc....
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.