Solved

Calendar object display-how to change the rows shown

Posted on 2008-10-22
4
314 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
This is an introductory video for CloudBerry Managed Backup. You will learn how to sign up with the service and get started in a few minutes.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now