.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

can I controll the change on calendar's month

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
hi all,  I have calendar in asp net 1.1 , I just wonder can I customer controll the change on the month ,  can I use the drop drown month to change the month in calendar ?  thnak you 

View Complete Post

More Related Resource Links

Simplest way to get a month change event on WPF Calendar (.net 4.0)



is there a simple way to receive some event as soon as someone turns the wpf calendar to the next or previous month?

The calendar is used as a user control part. (If this info is necessary)

At least i tried to handle this over some code via "DependencyProperty" to access the contend and the changed event of the "PART_Header...".

Unfortunately that won't solve my case.

Best regards,


change calendar date backColor base on data from db


I want to  change calendar date backColor base on data from db,  I only have vistual 2003 !

on mean time I have

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 23px; POSITION: absolute; TOP: 271px"
		    runat="server" Font-Size="XX-Small" Font-Names="Verdana" AutoGenerateColumns="False" Visible="False">
           <asp:BoundColumn DataField="subject" HeaderText="Title"></asp:BoundColumn>
           <asp:BoundColumn DataField="posttimestart" HeaderText="Post date"></asp:BoundColumn>


Sub DayRender(ByVal source As Object, ByVal e As DayRenderEventArgs)
        Dim i As Integer
        For i = 0 To DataGrid1.Items.Count - 1
            If (DataGrid1.Items(i).Cells(1).Text = e.Day.Date) Then
                e.Cell.BackColor = Color.DarkOrange

            End If

    End Sub

when I click the day wich have data in db it change  color , but I want the page load it change color !

Thank you!

Applying custom CSS to the MOSS 2007 Calendar control Month view



I have a requirement to use the MOSS 2007 Calendar Control - month view is to apply a custom css to have a look and feel as per our requirements.

We tried applying the custom css to the MOSS 2007 calendar control - month view, it does take the custom css and applies it, but when i click on any date and come back to the calendar control, it changes the CSS of the MOSS calendar control back to the default one.

Let me know if anyone has any suggestion on  how to customize the calendar control for css for our intranet application.

Your response would be highly appreciated.






Hiding other month dates in ASP .Net Calendar Control

Often we need ASP .Net calendar control in our webpages. Most of the times we require navigation in between dates of the calendar control but there can be a requirement that when we want that users should not be able to select dates from month other than the current month.Some people might be thinking in mind that Microsoft has provided theShowNextPrevMonth property of a calendar control which can be set to false in order to disable the navigation in between months. Ok, this will disable navigation but what about the dates of adjacent months shown in current month?Following is the output of a normal Calendar control when ShowNextPrevMonth is not set to false.Note the red circles in above image. July and September will allow you to navigate through other months and red circles below will allow you to select dates of adjacent months.Ok now we set the ShowNextPrevMonth property to false and see the output. Following is the output in this case.So setting out the ShowNextPrevMonth property has disabled the July and Septemberlinks but dates of adjacent months are still there which can be selected as well. How to disable/hide these? Unfortunately there is no such default property provided using which one can disable or hide these dates but fortunately doing this using code is not a complex task. Use following code a

Customize calendar to view next month

I was wondering if there is a way to change the calendar view on SharePoint so that it defaults to next month.  Will I have to create a custom web part for this functionality or can I create a view and manipulate it with filters? Thank you in advance.

Remove time from Month Calendar view

We have a calendar part on a page that has very narrow boxes for each day. As such we want to remove the time from appearing before the title of the event. I have managed to do this through css where there is only one event. However, have not been able to remove it where there are mutiple events. Any ideas on how this can be removed in both scenarios? Cheers, Theo

SSAS Calendar Week commencing with split at month

Hi all, Wonder if someone can help. Our CFO wants to see a cube calendar that shows week commencing but stops at the end of month. For example if the dates are Monday  28th   Tuesday  29th   Wednesday 30th   Thursday 1st    Friday  2nd Saturday 3rd Sunday   4th So for this example the week commencing is the 28th of Month 1 and Thursday is week commencing 1st of the next. I am having a problem seeing how I can do this. If I add the weeks to a standard calendar I get the week commencing 28th which includes the 7 days, naturally. I cannot help feeling I am missing something obvious. Cheers

change the date rang in calendar depend on the data from db

if the calendar day is match with the date in db I can change the claendar 's background color  with the following code , How if I want  my calendar change color by the range of the data in my db ,  said I want the calendar change color from the starDay to endday of the event , the date rang is random what can I do ??  For Each dr In tmpds.Tables(0).Rows                    If Not dr("startDay") Is DBNull.Value Then                        Dim dtEvent As DateTime = dr("startDay").ToString

Possible bug: Calendar views browse month function not working when list is inserted as webpart.


Inserted a custom list with a calendar view on a page as webpart. Browse month function does not work, there is a postback but month is still the current month instead of the next or previous.

Is this a know issue/bug?

How to change the date format using AJAX calendar control tookit


I want to desplay date like (21-Sep-2010)

Month Group View in Calendar


Dear collegs,

I have one issue and hope that you maybe can help me.

Namely, I created on new Calendar.  In that Calendar exist 5 standard views (under the main Calendar view) and that are :

1) Day Group

2) Week Group

3) Day 

4) Week

5) Month

What I need is something what missed here - Month Group (namely exists standard view Month but not Month Group).

Do maybe somebody know how can add or make Group Month ? Is for that neccesary some programing or can simply that do only isnide SharePoint.

Thanks in Advance.






Month Group View in Calendar in SharePoint 2010


Dear collegs,

I have one issue and hope that you maybe can help me.

Namely, I created on new Calendar.  In that Calendar exist 5 standard views (under the main Calendar view) and that are :

1) Day Group

2) Week Group

3) Day 

4) Week

5) Month

What I need is something what missed here - Month Group (namely exists standard view Month but not Month Group).

Do maybe somebody know how can add or make Group Month ? Is for that neccesary some programing or can simply that do only isnide SharePoint.

Thanks in Advance.


Strange Calendar issue - Missing Data, only on last day of month


Hi. I'm using Sharepoint 2007 and we're experiencing a strange issue. In the Month view, if I look at the month of September, September 30th appears to have 15 items.  Clicking on the date displays these 15 items, but there should be considerably more. The entire day's schedule stops at 6:30 am. If I view the month of October, and look at the September 30th date, it indicates that there are 36 items, which is the correct number.  This pattern happens regardless of which month I'm looking at. It's always the last day of the month affected. The number of missing items varies from month to month, generally around 20 items. I'm baffled, and haven't got a clue how to attempt to troubleshoot this issue.

I would greatly appreciate any suggestions on how to attempt to resolve this!

populate day dropdown on month change

<script type="text/javascript" language="javascript">
function testDate(value)

// var sel = document.forms(0).DDAY;
var sel =document.getElementById('DDAY');

sel.options.length = 0;

var NoOfDays = DaysInMonth(value);

for(var i=1;i<=NoOfDays;i++)
//create new option
var option = new Option(i, "Value" + i);
sel.options(i) = option;


<select onchange="testDate(this.value)" id="MMONTH" style="display: none;
z-index: 101; left: 0px; width: 80px; position: absolute; top: 2px" runat="server">
<option selected="selected" value="01">JAN</option>
<option value="02">FEB</option>
<option value="03">MAR</option>
<option value="04">APR</option>
<option value="05">MAY</option>
<option value="06">JUN</option>
<option value="07">JUL</option>
<option value="08">AUG</option>
<option value="09">SEP</option>
<option value="10">OCT</option&g

Calendar List View Issue - No Month, Week, Day Icons


I'm trying to setup a Calendar view for a list in SharePoint 2010. Everything is working the way I want, except there are no icons to change the view from Month, Week, or Day. Right now, if someone clicks on a date on the calendar, it switches to the Day view. But there is no way for them to go back to the month view.

I open the page in SharePoint Designer, and in the Design view I can see three icons on the Calendar (Month, Week, Day). But at no time do these icons show up anywhere except the design view.

I want it to have the arrow buttons, the month and year (which are already displaying) and then the icons to change the view. How do I get them to appear?

ajax calendar control get closed on month selection



   I have following problem

   1) When I click on Ajax calendar control month "Previous" or "Next" arro button calendar control get closed without date selection.

     what is problem can any one tell me and solution?  plz.




Calendar Month View - Expand All



Can anyone point me in the right direction to show all items for a certain day when I'm on the month view of a calendar.

We will often have more than three items on certain days and I'd like for the end user not to have to 'expand' to see all the items.

We managed it in Sharepoint 2007, but 2010 looks like a different beast all together.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend