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

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

Add Calendar through code to page SharePoint 2010 - help

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :SharePoint
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

More Related Resource Links

Video: SharePoint 2010: Executing Code in the Sandbox

Find out how the Sandboxed Solutions Service provides for a complete isolation system that ensures code running in a sandboxed solution cannot reach out to access information beyond the scope of the deployment. (Length: 12:01)

SharePoint 2010 Mobile Page Filter Settings

hello, i want to know from where i can edit the mobile page "task" list filter settings ? thanks

Passing values from web page to custom security trimmer in SharePoint 2010

Hi, In SharePoint 2007 we had a custom security trimmer that implemented ISecurityTrimmer interface. We also had a custom webpart used for search. Now, using HttpContext we passed values from the webpart to security trimmer with additional info needed to trim the results. It worked since trimmer was executed in the same w3wp process as webpart. Now in SharePoint 2010, the architecture for ISecurityTrimmer2 has changed, as it's executed in search process (other w3wp) - not the webpart w3wp so it has no access to the HttpContext. Question is: how to pass custom data, in form of the string, to a security trimmer when search is done from custom code in webart?

Show wiki page library columns on wiki pages- SharePoint 2010

I created a wiki page library in SharePoint 2010 and added a few columns to the library. However, these columns do not show on the actual wiki pages as they did in SharePoint 2007. I looked through the library settings but didn't find anything to turn on this feature. Does anyone know how to do this or if this feature was even included in SharePoint 2010? Thanks.

This Page has been modified since you opened it on Sharepoint 2010

When I use Server.Transfer("page2.aspx") the page2.aspx get's succesfully loaded. But when you you use Server.Transfer("page1.aspx") to get back from that page2.aspx to the page1.aspx. I got the following error: This Page has been modified since you opened it. You must open the page again... The above scenario is working perfectly on MOSS2007. Has anybody got an idea why this is not working on Sharepoint 2010 server? Thx Kris Kris Buntinx

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

"Personalise this Page" feature cannot be found in SharePoint 2010 portal

I am unable to find the "Personalise this Page" option in SharePoint 2010 as in MOSS 2007. Please help me to get this feature  enabled for AD authenticated users.

replacing menu in a master page - Sharepoint Foundation 2010

I'm in the process of replacing a menu using Jquery and a sharepoint list.The menu data would be retrieved from webservice. But the problem i have is where to place my js menu script the master page. I tried disabling the asp: menu and the content place holders by setting visible to false and the place my div with the new menu just before the first content place holder. But i discover that any time i try and hover the menu.The hover kind of get blocked and it doesn't show. What do i need to take off and where should my js menu be place..

Add "New Calendar" to the site actions menu in SharePoint 2010

I really like how SharePoint 2010 uses Silverlight to allow users to create a new Document Library from the Site Actions menu.  I would like to alter the v4.master page and add a new menu item to the Site Actions menu that allows the user to create a new Calendar.  How do I alter the code below to make a new menu item that will create an events list? <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateDocLib" Text="<%$Resources:wss,siteactions_createdoclib%>" Description="<%$Resources:wss,siteactions_createdoclibdesc%>" ImageUrl="/_layouts/images/NewDocLibHH.png" MenuGroupId="200" Sequence="220" UseShortId="true" ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('DocLib')) { GoToPage('~site/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&amp;ListTemplate=101') }" PermissionsString="ManageLists" PermissionMode="Any" VisibilityFeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" />

SharePoint 2010 Calendar Webpart not showing overlays

I have made 4 overlays on one calendar and I figured I could add that calendar webpart to the homepage and it would show all the overlays, but it isn't doing that.  Is there a way to show all the overlay calendars in the calendar webpart? Thanks!

Javascript error when attempting to switch page layouts in SharePoint 2010

I hope I put this in the correct forum. I am experiencing the following error when attempting to change the layout of an existing SharePoint 2010 page. But it does not seem to happen on all page types, just publishing pages. This error is happening on both the development server and both test servers. I have look in to the logs, since if it a javascript error there was nothing, which would be expected but I had to try. I have look at the cui.js file but was unable to spend enough time trying to figure out what exactly is going on in this file. Error being received ... Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 7 Sep 2010 21:10:54 UTC Message: Object required Line: 2 Char: 6422 Code: 0 URI: http://devintranet2010.myconexus.ca:85/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D   If anyone has any ides or can point me in a direction that will allow me to productively continue my investigation, the information would be greatly appreciated. Regards Kyle

Anonymous Access to "Event Export" on sharepoint calendar display page

I am using a SharePoint calendar with events added in the list. When an anonymous user tries to use "Export Event" on the display page ,the user is prompted for a login. Is there a way that an anonymous user can download the .ics file without logging in ? Is anonymous access even possible ?    

Does anyone know how to create a page that has Code behind in Sharepoint.

I am creating a page that will need some controls for dropdowns and radio buttons etc and I need to know if and how to setup and create a page in Sharepoint that has the code behind to handle click events, onselectedchange like .NET does.

SharePoint 2010 new site collection display blank page

I'm using Windows Vista SP2 and trying to learn Sharepoint 2010. I'm new to Sharepoint and I'm sorry if I'm asking something very simple. I've successfully installed Sharepoint foundation 2010 and VS 2010. According to the installation instruction if the installation is successful I should see the new sharepoint website home page or ask for login info which will take to the home page. But for me it displayed a blank web page. I was able to get to Sharepoint Central administration page by clicking the browse option from IIS, it asked me login info and when I provided that I was able to see the Sharepoint central administration page. Now I am trying to create a new site collection, it is succesfully creating the new site collection and showing the link, but when I access the link I see a blank webpage. I think it is some permission issue and if the program prompts login, it should work, but how can I get to the login window or how can I see the home page and not a blank page? Thanks

Sharepoint 2010 page width

I am trying to set up sharepoint site 1024 x 768, I have tried css body.v4master, body #s4-workspace, I am getting a horizontal scroll bar in the bottom I am trying to build a custom layout page, help me out thank you Neel

Delete Page Layouts and Master Pages in SharePoint 2010

Hi I want to delete unwanted Page layouts and master pages in share point 2010. I tried to delete the steps mentioned below as like MOSS 1.Create a New folder 2.Move the page layouts to that New folder 3.Delete the New folder But this approach also failed.. please suggest me to delete... Thanks in Advance ArunWith Love

Does sharepoint 2010 beta 2 supports persian calendar ?

Himy question is that does microsoft provide persian calenadr in sharepoint 2010 beta 2 ?as u know in .net 2.0 and above, microsoft has add support for persian canlendar with this class System.Globalization.PersianCalendar, and also add persian collation in sql server 2008, also some office addon's packages published to support persian languages in offuce 2003, 2007. but do not have offical support for persian calendar in sharepoint 2007. i hope this problem solve in 2010.Honestly i request to managers to help me to0 accomplish this goal.thanks in advance. http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
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