.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

SharePoint 2010 - 2 types of calendars?

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :SharePoint
I placed on the default.aspx programmatically using the following code.   I noticed however that this calendar has different properties than the calendar that I add from within SharePoint.  For example the ajax properties are not available on the calendar that I added through code.  Why is there a difference?? Utility     .EnsureList(site, "Calendar",SPListTemplateType.Events); public static void EnsureList(SPWeb site, string listName, SPListTemplateType template){ SPList list = null; Guid listID = Guid.Empty; if (site != null) { foreach (SPList oList in site.Lists) { if (oList.Title == listName) { list = oList; listID = oList.ID; break; } } if (list == null) { listID = site.Lists.Add(listName, "", template); list = site.Lists[listID];     if (template == SPListTemplateType.WorkflowHistory) { list.OnQuickLaunch = false; } else { list.OnQuickLaunch = true; } list.Update(); } } else { throw new Exception("In EnsureSiteDataList SPWeb is null"); }}   thanks -davedave

View Complete Post

More Related Resource Links

Group Calendars in SharePoint 2010

One of the many requests I had in SharePoint 2007 was the ability to place SharePoint Calendars on top of each other like you can in Outlook 2007 saving you having to look at each and work out when the best time is for a meeting.

Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Quick Note: Create Custom Content Types in SharePoint 2010

Learn how to create a custom content type. Then you add two fields to the content type: a new text field and a field that already exists in web site.

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

Video: Getting Started SharePoint 2010: Creating .NET Framework Types for a Business Connectivity Se

This demonstration shows how to use Visual Studio 2010 to create Business Data Connectivity projects that incorporate external data into SharePoint solutions. (Length: 8:33)

Video: Types of SharePoint 2010 Applications

This video describes the most common types of application that developers build for SharePoint 2010. (Length: 1:26)

Video: What are SharePoint 2010 Content Types?

This video provides an overview of working with Content Types programmatically. (Length: 2:59)

Video: Programming with SharePoint 2010 Content Types

This video demonstrates how there are certain types of things you can do with Content Types programmatically that are not achievable with the UI. (Length: 5:33)

Video: External Content Types and Business Connectivity Services for SharePoint 2010

This video discusses the concept of external content types for Business Connectivity Services. (Length: 1:34)

Microsoft SharePoint Server 2010: Deprecated Types and Methods

This resource contains text files that list all of the deprecated types and methods in Microsoft SharePoint Server 2010 and Microsoft Office SharePoint Server 2007.

Sharepoint 2010 Missing Content Types

Has anyone run into an issue where your system's base content types dissappear after deploying a new site definition.  We are doing a proof of concept using several CMS solutions and decided to see how sharepoint would fare in the process.  I worked on the POC for 6 weeks without any issues.  After selecting sharepoint as the solution I started refactoring my code into a more logical structure as many of the components were developed from sample code.  I created a couple of custom site definitions that were pretty simple.  Basically I copied the onenet.xml from the publishing site template that sharepoint uses and made a few simple modifications like associating my custom master page and a custom content type with the default page.  When I initially developed these I had no issues at all but yesterday I suddenly was not able to create sites using these site defs.  I figured there was some kind of conflict with my old templates so I deleted all site collections on the server and then tried to create a new site collection and then I couldn't even create a base publishing site.  I got an error indicating the base content type did not exist.  After spending hours going through logs it was clear that sharepoint was not able to build the content type hiearchy when creating new sites so I took a look at the UI and there were only abo

Use SharePoint 2010 to different video file types

Hi all,

I am new to SharePoint 2010 and have one question on Asset Libraries.

Asset Libraries is a new library type in SharePoint 2010. They are designed to hold media such as pictures and videos. We can upload a Windows Media Video (WMV) file to our Assets Library. However, can I upload other video types like MP4, flash or others?
If yes, how can I do that?
If no, are there any workaround for it?

Thanks in advanced.

External content types are not working in SharePoint 2010 Web Front End in DMZ


I have discovered that my Web Front End server will try to connect directly to the SQL server I have listed in my external content type.  I am able to render the contenct properly on my SharePoint 2010 App server, but when I try to render the list on the DMZ server I receive Cannot connect to the LobSystem (External System).   Is there a way around this?  I would like my Web Front End to connect only to my SharePoint 2010 App tier which has access to all of the databases in my infrastructure.  The Web Front End only has access to the App tier.



SharePoint Designer 2010 External Content Types Data Source Already Exists in Business Data Connecti


I used the Secure Store to create connection in SharePoint 2010 Designer External Content Types Data Source Explorer.  Later I changed some column names in the table.  I deleted the connection from Data Source Explorer and recreated it. I right clicked on the table and selected Create All Operations. When I clicked the Finish button, I got "The system definition with the same name as this data source already exists in the Business Data Connectivity Metadata Store and it refers to a different data source.  Cannot complete operation generation.  Add a connection to this data source with a different name and try again." 

I re-created the Secure Store using a different name in SharePoint 2010 Central Administration.  I didn't find the option to choose the connection name in SharePoint 2010 Designer. After I clicked Add Connection, I entered the Database Server and the Database Name, selected Connect with Impersonated Window Identity, entered Secure Store name, and clicked OK. The connection created with the database name as before.

Video: Creating Custom SharePoint 2010 Field Types

Watch this visual how-to video to learn how custom field types provide powerful extensibility for creating business solutions for SharePoint 2010.

Creating Multicolumn SharePoint 2010 Field Types (Visual How To)

Learn how to work with multicolumn values when creating custom field types in SharePoint 2010 to track two or more pieces of data that represent one piece of information.
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