I am add a calendar to a page through a feature. How do I set the view to be 'All Events'. Currently the page gets rendered with the calendar in full graphic mode (showing all days in the month).
I would like to through code have the calendar be visible by default 'All Events' ..help?
I am using code similar to the following. You can see some of the things i have tried (commented out lines)
ListViewWebPart calendarWP = new ListViewWebPart();
SPList calendarList = site.Lists["Calendar"];
//SPView view = calendarList.Views["All Events"];
calendarWP.ListName = calendarList.ID.ToString("B").ToUpper();
calendarWP.TitleUrl = calendarList.DefaultViewUrl;
calendarWP.WebId = calendarLis
View Complete Post