Solved

Calendar object display-how to change the rows shown

Posted on 2008-10-22
4
319 Views
Last Modified: 2013-12-17
Hi,

I'm trying to display a calendar using c# asp.net. I have a basic calendar (see jpg attachment for picture) but I need to remove the column to the far left that has month and week written on them. Is there a way to do this?

My aspx code is below


I tried to remove             SelectWeekText="week"   SelectMonthText="month"

and was left with <<     >> in their place on the calendar, I need to totally remove this column.

Thanks

<asp:Calendar id="Calendar1"
     OnSelectionChanged="Date_Selected"
     SelectionMode="DayWeekMonth"
     Font-Name="Verdana" 
     Font-Size="12px"
     NextPrevFormat="ShortMonth"
     SelectWeekText="week"
     SelectMonthText="month"
     runat="server">
 
   <TodayDayStyle Font-Bold="True"/>
   <DayHeaderStyle Font-Bold="True"/>
   <OtherMonthDayStyle ForeColor="gray"/>
   <TitleStyle BackColor="#3366ff"
               ForeColor="white"
               Font-Bold="True"/>
 
   <SelectedDayStyle BackColor="#ffcc66"
                     Font-Bold="True"/>
   <NextPrevStyle ForeColor="white"
                  Font-Size="10px"/>
   <SelectorStyle BackColor="#99ccff" 
                  ForeColor="navy"
                  Font-Size="9px"/>
</asp:Calendar>

Open in new window

calendar.jpg
0
Comment
Question by:CharlieDev
  • 3
4 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22777095
remove all of the following
SelectionMode="DayWeekMonth"
SelectWeekText="week"
SelectMonthText="month"
0
 

Author Comment

by:CharlieDev
ID: 22777257
Awesome, thanks! :)
0
 

Author Comment

by:CharlieDev
ID: 22777940
Do you know what property I would use to change the size of the calendar, so that the calendar takes up 375 pixels by 250 px and also make each square that each date sits in larger to fill the larger calendar grid?
 
Many thanks
0
 

Author Closing Comment

by:CharlieDev
ID: 31508827
Thanks very much for such a speedy reply
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question