|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Calendar ControlIs there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like:
January, 2006 February, 2006 ..... .... .... .... Thanks Peter 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.) -------------------- Show quoteHide quote | From: "Peter" <pczurak@nospam.nospam> microsoft.public.dotnet.framework.aspnet:368948| 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: <#JvKtonEGHA.***@TK2MSFTNGP12.phx.gbl> | 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!TK2MSFTNGP12.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet only Month Name and Year, like:| | Is there anyway to make the System.Web.UI.WebControls.Calendar to display Show quoteHide quote | January, 2006 | February, 2006 | .... | ... | ... | ... | Thanks | Peter |
Show quote
Hide quote
"Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message Thank you for your helpnews:c2lHnGsEGHA.1240@TK2MSFTNGXA02.phx.gbl... > 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" <pczurak@nospam.nospam> > | 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: <#JvKtonEGHA.***@TK2MSFTNGP12.phx.gbl> > | 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!TK2MSFTNGP12.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 > | > 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. 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" <pczurak@nospam.nospam> <c2lHnGsEGHA.1***@TK2MSFTNGXA02.phx.gbl>| References: <#JvKtonEGHA.***@TK2MSFTNGP12.phx.gbl> | Subject: Re: Calendar Control microsoft.public.dotnet.framework.aspnet:369023| 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: <uocCK0sEGHA.2***@TK2MSFTNGP15.phx.gbl> | 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!TK2MSFTNGP15.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | "Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message | news:c2lHnGsEGHA.1240@TK2MSFTNGXA02.phx.gbl... | > 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" <pczurak@nospam.nospam> | > | 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: <#JvKtonEGHA.***@TK2MSFTNGP12.phx.gbl> | > | 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!TK2MSFTNGP12.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. | | | |
Other interesting topics
HttpWeb Request from Class Library fails to 500
How do I convert a DataSet to a String from a WebService when debugging long delay before hitting breakpoint in page load Don't show page in browser history asp.net 2.0 caching ASP.net 2.0 GridView edit mode problems GridView and XML problems What is ASPNETDB.MDF used for? Switching from http to https and back call functions by pointer? |
|||||||||||||||||||||||