Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Calendar Control

Reply
Thread Tools

Calendar Control

 
 
Peter
Guest
Posts: n/a
 
      01-06-2006
Is there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like:

January, 2006
February, 2006
.....
....
....
....



Thanks


Peter
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      01-06-2006
Hi Peter,

Welcome to ASPNET newsgroup.
As for the question you mentioned, do you means that you only want to
display the current Year and Month value (as a Label) on the page rather
than including all the days in the month, yes?

If so, as for Calendar control, it can not be customized to only display
year and month, also, Calendar control is a large control which may
contains large viewstate and html content, so if you want to display a Year
+Month label, I suggest you consider just use a Label control or create a
custom control to displaying such info, and we can use the
System.DateTime.Now to get the current time info....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: "Peter" <>
| Subject: Calendar Control
| Date: Thu, 5 Jan 2006 22:32:15 -0600
| Lines: 57
| MIME-Version: 1.0
| Content-Type: multipart/alternative;
| boundary="----=_NextPart_000_0006_01C61247.E13D8080"
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: cpe-69-23-74-9.new.res.rr.com 69.23.74.9
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:368948
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Is there anyway to make the System.Web.UI.WebControls.Calendar to display
only Month Name and Year, like:
| January, 2006
| February, 2006
| ....
| ...
| ...
| ...
| Thanks
| Peter
|

 
Reply With Quote
 
 
 
 
Peter
Guest
Posts: n/a
 
      01-06-2006
"Steven Cheng[MSFT]" <> wrote in message
news:...
> Hi Peter,
>
> Welcome to ASPNET newsgroup.
> As for the question you mentioned, do you means that you only want to
> display the current Year and Month value (as a Label) on the page rather
> than including all the days in the month, yes?
>
> If so, as for Calendar control, it can not be customized to only display
> year and month, also, Calendar control is a large control which may
> contains large viewstate and html content, so if you want to display a
> Year
> +Month label, I suggest you consider just use a Label control or create a
> custom control to displaying such info, and we can use the
> System.DateTime.Now to get the current time info....
>
> Thanks,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
> --------------------
> | From: "Peter" <>
> | Subject: Calendar Control
> | Date: Thu, 5 Jan 2006 22:32:15 -0600
> | Lines: 57
> | MIME-Version: 1.0
> | Content-Type: multipart/alternative;
> | boundary="----=_NextPart_000_0006_01C61247.E13D8080"
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> | Message-ID: <#>
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | NNTP-Posting-Host: cpe-69-23-74-9.new.res.rr.com 69.23.74.9
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl
> microsoft.public.dotnet.framework.aspnet:368948
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | Is there anyway to make the System.Web.UI.WebControls.Calendar to
> display
> only Month Name and Year, like:
> | January, 2006
> | February, 2006
> | ....
> | ...
> | ...
> | ...
> | Thanks
> | Peter
> |
>


Thank you for your help

I am already using Calendar control to allow user to select dates, but on my
web page there's an option for user to use approximate date instead of exact
date, so when user selects approximate I need to display a list of Month /
Year instead a full calendar, so I though I could use the Calendar control
for both options. I guess I have to create separate control for the
approximate option.



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      01-09-2006
Thank for your response Peter,

Yes, I agree that use a separate control should be the reasonable approach.
If there're anything else we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Peter" <>
| References: <#>
<>
| Subject: Re: Calendar Control
| Date: Fri, 6 Jan 2006 08:25:25 -0600
| Lines: 73
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: cpe-69-23-74-9.new.res.rr.com 69.23.74.9
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:369023
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| "Steven Cheng[MSFT]" <> wrote in message
| news:...
| > Hi Peter,
| >
| > Welcome to ASPNET newsgroup.
| > As for the question you mentioned, do you means that you only want to
| > display the current Year and Month value (as a Label) on the page rather
| > than including all the days in the month, yes?
| >
| > If so, as for Calendar control, it can not be customized to only display
| > year and month, also, Calendar control is a large control which may
| > contains large viewstate and html content, so if you want to display a
| > Year
| > +Month label, I suggest you consider just use a Label control or create
a
| > custom control to displaying such info, and we can use the
| > System.DateTime.Now to get the current time info....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | From: "Peter" <>
| > | Subject: Calendar Control
| > | Date: Thu, 5 Jan 2006 22:32:15 -0600
| > | Lines: 57
| > | MIME-Version: 1.0
| > | Content-Type: multipart/alternative;
| > | boundary="----=_NextPart_000_0006_01C61247.E13D8080"
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <#>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: cpe-69-23-74-9.new.res.rr.com 69.23.74.9
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:368948
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Is there anyway to make the System.Web.UI.WebControls.Calendar to
| > display
| > only Month Name and Year, like:
| > | January, 2006
| > | February, 2006
| > | ....
| > | ...
| > | ...
| > | ...
| > | Thanks
| > | Peter
| > |
| >
|
| Thank you for your help
|
| I am already using Calendar control to allow user to select dates, but on
my
| web page there's an option for user to use approximate date instead of
exact
| date, so when user selects approximate I need to display a list of Month
/
| Year instead a full calendar, so I though I could use the Calendar
control
| for both options. I guess I have to create separate control for the
| approximate option.
|
|
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar GadGets does not show calendar iccsi Windows 64bit 4 08-14-2011 01:52 PM
How to Synchronise Hotmail Calendar with Standard Outlook Calendar using Outlook Connector ?? Synapse Syndrome Computer Support 0 12-02-2007 04:19 AM
Thunderbird Calendar with Exchange 2003 Calendar and Public FoldersCalendar jincmcse Firefox 1 09-03-2005 02:46 AM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net 3 06-23-2004 01:41 PM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net Web Controls 0 06-23-2004 12:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57