Posts

Showing posts from June, 2011

What is Nullable types in C#

What is nullable type in C# code? Please explain with an example.

Nullable types were introduced in C# 2.0.
Nullable types are instances of the System.Nullable<T> struct. A nullable type can represent the range of values for its underlying data type, also an additional null value.

Dictionary in C sharp. Please explain with code

What is a dictionary in C#?Please explain.

What is information management policies in SharePoint2010

What is information policies in SharePoint.

A policy, as defined by MOSS, is a set of rules or guidelines that govern the creation, use, and disposition of a particular item, site, collection, list, library, page, and so on.
Such as information management policy defines who can access documents of a certain content type, what users can do with these documents, and, where applicable, how long the document is retained.
Information Management Policies on a SharePoint Site
A SharePoint information management policy can be created on a site using three different
approaches:
Create an information management policy on the site collection.
Create an information management policy on a site content type.
Create an information management policy on a list or library.
Site Collection Policies
The best way to ensure an information management policy is applied to all the
documents of a certain type is to create the policy at the site collection level and then apply
it to the content types to be man…

Executing Server side code in sharePoint or use of PageParserPath

Executing Server side code in sharePoint or use of PageParserPath

Application pages in sharepoint behave like asp.net pages where they may contain inline server code.  Wheras site pages are rendered as safe mode parser so there is no problem with these type of pages.
The problem comes with application pages i.e. asp.net pages. SharePoint will not allow any pages to be render which contains in line server code.  If you can say here sharepoint shows its limitation towards development. But there is a way to overcome this problem. If you want to render pages with inline server code then you can use <PageParserPath>…</ PageParserPath>.
So, how to use PageParserPath to render pages with inline server code.
Go to the web.config file of SharePoint and search for <SharePoint> tag, within it you can use page parser path like this.
<PageParserPath VirtualPath="/myFiles/*" CompilationMode="Always"
AllowServerSideScript="true" IncludeSubFolders=&qu…

Concept of boxing and Unboxing in C sharp

Boxing and Unboxing concept in C# language. Explaining with code.

Boxing: Boxing refers to the process of moving from a value type to reference type.
Un-Boxing: Un-Boxing refers to the process of moving from a reference type to value type.