473,657 Members | 2,534 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 1064
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********@hotm ail.com
http://www.nathansokalski.com/

<bo*******@gmai l.com> wrote in message
news:11******** **************@ j52g2000cwj.goo glegroups.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
3339
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. Is there a way to make the control work in modal dialogs? Thanks in advance, Alwin S.
1
1321
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 calendar you can see the end of October and the first few days of December. All I want is November. Any ideas? Greg
1
1575
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 window. I looked on the control for a target property but could not find one. The calendar work great inside the frame except for the problem mentioned above. Any input on this issue would be greatly appreciated. Thanks,
2
1616
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 behind procedures to intercept the creation of the Calendar to modify the parameters using DOM? Looking to generate multiple calendars, for different months, using a C# programming loop rather than in-line code in the .aspx file.
0
1084
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 above example is NOT using the <asp:Calendar> control - I'm merely using it as an example of the sort of formatting I'd like to use with an <asp:Calendar> control.
3
2914
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 (something like the Calendar in Microsoft Outlook)... Can this be done? Or do I have to build that from scratch?
3
1092
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
2658
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" OtherMonthDayStyle-CssClass="calOtherMonthDay" />
1
2832
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. my only problem is that i can not select today's date to display in the text box because by default, today's date is the selected date. <asp:UpdatePanel ID="UpdatePanel_start" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"> ...
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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 we have to send another system
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.