Follow in Twitter & Facebook


Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools


Saturday, December 31, 2011

Happy New Year 2012

- No comments
Wish you all a very Happy New Year 2012 !!!


Sunday, December 25, 2011

Configure Email/SMTP Settings in SharePoint 2010.

- No comments
While using alert via email in List and Library if u will get an error like "This web application is not configured to send e-mail. For assistance, contact your server administrator". so in order to solve the error you need to configure Email for your web application. so we can configure Email in webapplication level as well as Farm level.
1-To configure outgoing e-mail for a farm by using Central Administration:

step-1:
Verify that you have the following administrative credentials: You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.

step-2:
Go to  Central Administration, click System Settings.

Step-3:
On the System Settings page, in the E-Mail and Text Messages (SMS) section, click Configure outgoing e-mail settings.

Step-4:
On the Outgoing E-Mail Settings page, in the Mail Settings section, type the SMTP server name for outgoing e-mail  Outbound SMTP server box.

Step-5:
In the From address box, type the e-mail address as you want it to be displayed to e-mail recipients.

Step-6:
In the Reply-to address box, type the e-mail address to which you want e-mail recipients to reply.

Step-7:
In the Character set list, select the character set that is appropriate for your language.

Step-8:
Click OK.
2-To configure outgoing e-mail for a specific Web application by using Central Administration:

Step-1:
Verify that you have the following administrative credentials: You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.

Step-2:
In Central Administration, in the Application Management section, click Manage web applications.

Step-3:
On the Web Applications Management page, select a Web application, and then in the General Settings group on the Ribbon, click Outgoing E-mail.

Step-4:
On the Web Application Outgoing E-Mail Settings page, in the Mail Settings section, type the SMTP server name for outgoing e-mail in the Outbound SMTP server box.


Step-5:
In the From address box, type the e-mail address as you want it to be displayed to e-mail recipients.

Step-6:
In the Reply-to address box, type the e-mail address to which you want e-mail recipients to reply.

Step-7:
In the Character set list, select the character set that is appropriate for your language.

Step-8:
Click OK. Hope this will help you!!!!

Saturday, December 24, 2011

What about views in case of List and Library in SharePoint 2010 ?

- No comments
Views in case of list and library gives the format for displaying  the information in List and Library. For example,what columns are displayed and in what order. It also defines how to sort or group the contents of the list or library and what the contents should be filtered on.default Standard view.

There are different types of built-in views provided by SharePoint Foundation 2010 that you can use to display your data to provide the most value to the users of your site.
1- Standard view
2- Datasheet view
3- Calendar view
4-Gantt view
5-Access view

1-Standard View:
A Standard view of a SharePoint Foundation 2010 list or library displays the contents of the container as a list on a web page. The Standard view is available for lists and libraries,but not for surveys and discussions.

2- Datasheet view:
If you have installed the Microsoft Office 2010 Tools on your computer and your browser
supports ActiveX controls, you can use the Datasheet view of a list. Datasheet view presents all the list items in a grid, which facilitates easy editing across the entire table. Drop-down lists, check boxes, and column edits are all maintained. You can use the keyboard or your mouse to move from cell to cell to make changes to any row in the list. When you move off a row, the changes are saved automatically. In a library, you can only edit and delete items using the Datasheet view,while in a list, you can also add items using the Datasheet view.you can use Datasheet view with almost any list or library type except for the Picture Library, External List, and Survey types.

3- Calendar view:
You can use Calendar view in most lists and libraries, but the list will need to have at least one date field for the Calendar view to work properly. A Calendar view cannot be created for the following list types: External List, Discussion Board, and Survey. When you create a Calendar list, the Calendar view is the default. The Calendar view can be very useful for actions such as plotting tasks on or entering announcements into a calendar.

4-Gantt view:
A Gantt chart is a horizontal bar chart that is used to provide a graphical illustration of a project timeline. The Gantt chart has a horizontal axis that represents the time span of the project, broken down into increments such as days, weeks, or months. The vertical axis represents the project tasks. The Gantt chart shows the start and finish dates of different tasks and can also show the dependencies between the tasks. Picture Library, External List, Discussion Board, and Survey doesnot provide Gantt view.

5-Access view:
Using Access, it is easy to create advanced views and reports based on the columns and data in the list or library. When editing the list data in Access view, the values will be updated in the SharePoint list automatically. The Access view is available for all list types except the External List and Survey.

Merry Christmas to you all

- No comments

Bells are ringing
the wishes of christmas day
the flying snowflakes
send my most sincere blessings
to you merry christmas.

Wednesday, December 21, 2011

WebBrowsableAttribute and PersonalizableAttribute in SharePoint 2010

- No comments
Webpart will have default properties like Title, Chrome Type, Size etc. But while developing a custom webpart properties like WebBrowsableAttribute and PersonalizableAttribute are used for setting properties for that webpart. So at the time of configuring the webpart these properties will be available.

The WebBrowsableAttribute class instructs the Web Parts infrastructure that the property has to be made available in the Web Part’s configuration panel.

It tooks boolean value like true or false. Here is how it declares [WebBrowsable(true)]
The PersonalizableAttribute declares that the property can be personalized and defines the scope of the personalization. It accepts scope as User or Shared. User means the property can be personalized on a per-user basis and Shared means the property personalization will be shared between all users.

It declares like below:
[Personalizable(PersonalizationScope.Shared)]

If you will use for a webpart property then it looks like below:

[WebBrowsable(true)]
[Personalizable(PersonalizationScope.Shared)]
public String Name { get; set; }

You can also check SharePoint Articles and Jobs.

Tuesday, December 6, 2011

Difference between SharePoint 2010 List and Document Library

- 3 comments
Introduction:
In this article we will discuss about What is the difference between a SharePoint list and SharePoint document library.

Details:
This is an important question always asked by interviewer,so let's discuss about this topic

SharePoint List:
1- SharePoint lists are web based editable tables.It gives us the ability to work with structured data.

2- List is going to store the same sorts of data that you would normally place into a spreadsheet.

3- A list contains items that are collections of fields/properties/columns.optionally can have one or more attachment.

4- SharePoint list doesnot support check in and check out options.

5- When the user searches for a keyword in a document , if the document is in a list then search returns the list item as the result.

6- Example of SharePoint lists are Contact lists,Task lists etc.

SharePoint Document Library:
1- SharePoint libraries are a list of files.

2- Library is used to store documents.

3- A library is a list ,but have one and exactly one file associated with each item .A library item also has fields/properties/columns.

4- SharePoint Library supports check in and check out options.

5- When the user searches for a keyword in a document , if the document is in a library then they find the document listed in the search results.

6- Examples of DocumentLibraries are PictureLibrary,FormLibrary etc.

You can also check some very good SharePoint 2010 articles and SharePoint Jobs here.

Monday, December 5, 2011

What are the different Editions of SharePoint 2010?

- No comments
SharePoint 2010 comes with different editions like as follows:
SharePoint Foundation:
- Microsoft SharePoint Foundation 2010 is the basic edition of the product.
- Its free and comes with the license of Microsoft  Windows Server 2008.
- It has only document storage and collaboration solution. But this edition also have cross-browser support, basic search features, out-of-thebox Web Parts, Silverlight support, new UI features based on dialogs and ribbons, blogs and wikis, and the workflow engine.
- SharePoint Foundation has its ability to upgrade from previous versions of Microsoft SharePoint.
- SharePoint Foundation also offers all the features supporting custom development, including the Web Parts programming model, the Server Object Model, the Client Object Model, Event Receivers, Claims-Based security etc

SharePoint Server Standard:
- Microsoft SharePoint Server 2010 Standard edition is built on top of SharePoint Foundation and adds some features useful for building business-level solutions.
- Also it supports Document Sets,content based on audiences, tags and metadata-driven search refinement, people search, and some other social features.
- It also provides tags and metadata-driven search refinement, people search, and some other social features.

SharePoint Server Enterprise:

- Microsoft SharePoint Server 2010 Enterprise edition targets large business solutions and enterprise-level organizations.
- It has all the features of SharePoint Server Standard also.
- Also it supports dashboards, key performance indicators (KPIs), and business intelligence features.
- It improves search capabilities by offering contextual search, deep search query refinement, extreme scale-out search capabilities, rich web indexing and so on.
- It also provides support for Excel Services, Visio Services, InfoPath Forms Services, and Access Services.

SharePoint for Internet Sites: 
Microsoft SharePoint Server 2010 for Internet Sites Standard edition:
- This edition targets web publishing sites.
- Created to support public Internet scenarios with an unpredictable number of users coming from the Internet, whether the users are anonymous or authenticated.
- The Standard Edition for Internet Sites can publish multiple domains.

Microsoft SharePoint Server 2010 for Internet Sites Enterprise editions:
- This edition targets web publishing sites.
- Created to support public Internet scenarios with an unpredictable number of users coming from the Internet, whether the users are anonymous or authenticated.
- The Enterprise Edition for Internet Sites can publish multiple domains.

Monday, November 28, 2011

SharePoint 2010 Features.

- No comments
Introduction:
In this article we will discuss 6 pillar of SharePoint 2010.

Description:
The 6 pillars also known as the features of SharePoint 2010 for developing business collaboration solutions are: Sites, Communities, Content, Search, Insights and Composites.

Sites:
- This feature includes creating websites, editing websites and applying themes etc. You can see this article on how to create custom theme for SharePoint 2010?

- SharePoint 2010 also provides Ribbons, dialog boxes, visual web parts, silverlight support etc.

- Unlike MOSS 2007 SharePoint 2010 supports cross-browser support, Now it supports Google chrome, Mozilla Firefox  and Safari apart from Internet Explorer.
Communities:
- This feature includes feature like content tagging and rating, social networking, message transfering etc.

Content:
- This feature includes Document sets through which we can group related documents. You can visit this article for more on Document set.

- Previously we could not store audio and video files but now by the help of this feature we  can able to store audio, video and streams.

Search:
- SharePoint 2010 provides fast search engine feature which provides multilanguage content and phonetic support.

Insights:
- This provides integration and support for Excel services, Visio services, Access services, Microsoft SQL Server Reporting Services etc.

Composites:
- This feature includes Business Connectivity Services , this is responsible for consuming the external resources. This provides tools like Visual studio 2010SharePoint Designer 2010.

Monday, November 21, 2011

How to get the 4 part assembly name of a custom web part in SharePoint 2010?

- No comments
As I have discussed previously the way to get the 4 part assembly name by using this URL, which sometimes gives the wrong result.
So here I am describing the way you can get the 4 part assembly name of your custom web part.
First of all add the web part to the SharePoint 2010 site by edit the page and click on the add a web part link on your web part zone. Once you will add the web part, go to Edit web part as shown in the figure below.

Then from the web part properties go to Advance and then in the Export mode Select Export all data as shown in the figure below.


Then click on OK.
After that click on Export... as shown in the figure below.
Then it will ask you to save the web part. Just save the webpart and after that open that file in notepad. It will give you everything about the webpart.

Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object

- No comments
I got this error "Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object " while attaching a event reciver using Visual Studio 2010 in SharePoint. Just for some more information I am attaching the event receiver to a SharePoint 2010 publishing web site. And the event was WebProvisioned.
When I checked the web.config file I have added the Assembly as MyPageLayoutEventReceiver. Though this is same as the assembly name, but was throughing error.
When I change the Assembly name to $SharePoint.Project.AssemblyFullName$, that worked. So my elements.xm file will be as like below:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Receivers >
      <Receiver>
        <Name>EventReceiver1WebAdding</Name>
        <Type>WebAdding</Type>
        <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
        <Class>MyEventReceiverLayout.EventReceiver1.EventReceiver1</Class>
        <SequenceNumber>10000</SequenceNumber>
      </Receiver>
      <Receiver>
        <Name>EventReceiver1WebProvisioned</Name>
        <Type>WebProvisioned</Type>
        <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
        <Class>MyEventReceiverLayout.EventReceiver1.EventReceiver1</Class>
        <SequenceNumber>10000</SequenceNumber>
      </Receiver>
  </Receivers>
</Elements>

Thursday, November 17, 2011

Error occurred in deployment step 'Activate Features': Failed to instantiate file filename from module modulename: The specified list does not exist

- No comments
While deploying a custom page layout through Visual Studio 2010 to a SharePoint 2010 publishing web site, I got the error "Error occurred in deployment step 'Activate Features': Failed to instantiate file "MyCustomPageLayout.aspx" from module "ourlayout": The specified list does not exist." My Elements.xml file code is shown below.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="ourlayout"  Url="_catalogs/ourlayout">
    <File Path="ourlayout\MyCustomPageLayout.aspx" Url="MyCustomPageLayout.aspx" Type="GhostableInLibrary" >
      <Property Name="Title" Value="My Custom Page Layout" />
      <Property Name="ContentType" Value=";$Resources:cmscore,contenttype_pagelayout_name;" />
    </File>
</Module>
</Elements>

So the proble was the path in the Url which was defined as Url="_catalogs/ourlayout". So I have modified the code below and it works for me.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="ourlayout"  Url="_catalogs/masterpage/ourlayout">
    <File Path="ourlayout\MyCustomPageLayout.aspx" Url="MyCustomPageLayout.aspx" Type="GhostableInLibrary" >
      <Property Name="Title" Value="My Custom Page Layout" />
      <Property Name="ContentType" Value=";$Resources:cmscore,contenttype_pagelayout_name;" />
    </File>
</Module>
</Elements>

This item cannot be deleted because it is still referenced by other pages while deleting page layout in SharePoint 2010

- No comments
I go this error while trying to delete a page layout from the master page and page layout galery. It was saying "This item cannot be deleted because it is still referenced by other pages ". Previously I have created a web site and also changed the layout, to this layout that I was trying to delete. Also I was not able to delete the Site, because this layout was throwing some error. So I go to Site actions then Manage Content and Structure as shown in the figure below.


 Then from there I select delete and delete the site as shown in the figure below.

After this when I tried to delete the layout, it worked for me. So you have to delete all the sites and then you have to delete the page layout. Also you can check SharePoint 2010 articles here.

Thursday, November 10, 2011

User Information List in SharePoint 2010

- No comments
User Information List is a hidden list maintained by SharePoint 2010 to stores and maintains a user information profile for authenticated users at the site collection level. A user also can update the profile information from the My Settings link. So for a particular user there will be only one user profile information accross all the sites in the site collection. You can see the list from the below URL
http://[sitecollection]/_catalogs/users/simple.aspx.

You can access the list by using SharePoint object model by using the SPList class.
But if you are using SharePoint Server and you have configured User Profile Service application to import profiles, in that case the information are copied from User Profile to User Information List by two timer jobs "User Profile to SharePoint Full Synchronization" and "User Profile to SharePoint Quick Synchronization". Here your profile information can be updated from the Active Directory or from My site feature.

What about Wiki Pages and Web Part Pages in SharePoint Foundation 2010 ?

- No comments
When you are going to create a Team site in SharePoint Foundation, SharePoint creates a wiki page library (known as site pages) where the web pages are going to store. There are two types of web pages one is Wiki pages and another one is Web part pages. Wiki pages are default while creating a team site,blank site template etc.

Wiki pages can contain web parts. Web parts are reusable components can contain any type of web based information like analytical, database information. Here in case of wiki pages, webpart contain static text and images. Web Part Pages can contain web part. here to place static text or images you have to use content editor web part and image web part.

Monday, October 31, 2011

Copy files from one folder to another using object model in SharePoint

- No comments
We can copy files from one folder to another folder using SharePoint object model in SharePoint 2010.

SPWeb site = SPContext.Current.Web;
SPFolder folder = site.GetFolder("Source folder name");
SPFileCollection spFileCollection = folder.Files;
List<SPFile> lstFiles = new List<SPFile>(spFileCollection .Count);
//Get all the files from the folder and put it in a list of type SPFile
foreach (SPFile file in spFileCollection)
{
    lstFiles.Add(file);
}

//The below code will take a file and move to the destination folder. it will continue till the end of all the files in the list
foreach (SPFile singleFile in listFiles)
{
    singleFile.MoveTo("Destination foldername/" +singleFile.Name, true);
}

You can also check SharePoint 2010 Articles and SharePoint Jobs.

Sunday, October 23, 2011

XSLT list view web part in SharePoint 2010

- No comments
Introduction:
In this article we will see What is XSLT list view web part in SharePoint 2010 and also we will discuss various steps to use XSLT list view web part. In my previous article we have discussed about Web Part life cycle in SharePoint 2010.

Description:
The list view web part are used by SharePoint to list and library data. When a new list is created, the web part for the list is also created automatically. List view web parts can show one view at a time from the list or library to which it is pointing. If you want to show more than one view of a list or library on the same page, just deploy a new list view web part pointing to the same list, then configure it to show a different view of the list. Once you insert the web parts into the page, it is easily customizable by using browser.

The list view web part is obsolute in SharePoint 2010. The new web part is known as XSLT List View Web Part. You can deploy the web part into a SharePoint page by using either browser pr by using SharePoint designer.

How to use:
To add this by the browser, go to the page then from the Ribbon click on Insert web part and from there go to the List and Libraries section and select the web part.

How it works:
It first queries the list or library data and retrieves it as XML. Then it uses industry-standard eXtensible Stylesheet Language Transformation (XSLT), which is a style sheet language for XML documents, to convert the XML data into HTML that the browser can understand and display to the end user. It uses shared XSLT style sheets that are presented inside the _layouts directory.
Also you can check Content Editor Web Part in SharePoint 2010.

Friday, October 21, 2011

Site Page and an Application Page in SharePoint 2010

- No comments
Introduction:
This article is based on what are site pages and application pages in SharePoint 2010 and also what is the difference between site pages and application pages. Also you can visit this article to know how to create application page using Visual Studio 2010?.

Description:
There are two types of pages in SharePoint.
1. Site Pages
2. Application Pages
Common on them: They both inherit their layout from the same master page.

1. Site Pages:
- A site page contains text, images, web parts etc and Site pages are stored in the file system.

- An end user can create, edit or customized a site page using SharePoint designer or browser.

- Once an end user modified the site page using SharePoint designer, the template for this page is stored in the content database rather in file system. So every time a user requested the page, the page is retrieved from the content database. At the same time you can also reset to the original template using designer.

- A site page can contain inline server code, but once it becomes customized it can not contain. A site page can also host features such as dynamic Web Parts, and Web Part Zones.

Example: Default.aspx

2. Application Pages:
- Application pages are stored on the file system of the front-end Web server in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS directory. This folder is mapped to an Internet Information Services (IIS) virtual directory called _layouts.

- Application page is complied into a single DLL, that why performance is better than site pages. These pages are share accross all the sites in the web application.

- An application page can not host features such as dynamic Web Parts, and Web Part Zones.

- It support inline code and also if you want to run custom code then it is better to use application pages.

Example: Settings.aspx
You can also check SharePoint 2010 Best Practices.

Sunday, October 16, 2011

Document Panel in SharePoint 2010

- No comments
In this article we will discuss what is document panel in SharePoint 2010. Also you can check what is document sets.
  • Document Panel that is used for displaying the content type associated with a document and columns defined by content type. This is a feature of word.
  • If you change the value of a column from the document panel and save the document back to the SharePoint library that information travels together with the document to the SharePoint library.
  • Also if you edit the document’s columns in the SharePoint library and save the changes, the next time you open that document in Word you will see the changes in the Document Panel.

Friday, October 14, 2011

content type in SharePoint 2010

- No comments
Content types can provide is a way to define the type of the content stored in SharePoint and proper fields to associate with that content. For example I want to store company name field with every word document. or you can say a content type is a collection of settings that can be applied to different types of content. Content types can be applied to SharePoint list. SharePoint can store multiple content types in a document library. Only one content type can be applied to a particular item in a document library or list.

Each content type has a distinctive set of properties and metadata that describe the content. This can include fields that are associated with the content type that can be displayed as columns in the list or document library. It can also include a specific document template used when creating instances of the content type.

Each content type inherits its attributes and settings from a parent content type. So every time you want to create a content type we need to select an existing parent content type.
All content types are stored in hierarchy. And in the root System content type is there, and below that Items content type is there. We could distingush as Site content type and list content type.Site content types are templates that are available throughout the site collection. And list content type are available to that list and to none of the other sites or lists. You can also check a good article on how to create content type in SharePoint 2010 using Visual Studio 2010.

Sunday, September 25, 2011

SharePoint Architecture

- No comments
Before reading this you can also check out some SharePoint articles here. SharePoint uses web applications to host site collections.

A web application in SharePoint 2010 is an IIS web application that has its own application pool. An application pool is a worker process that runs to receive requests from IIS and process responses.

During installation SharePoint creates two IIS web applications. The first one hosts the default site collection and the second one hosts the SharePoint Central Administration web site.
The Central web application will available through URL http://serverURL:PortNumber
And the default site collection will be available through http://ServerURL.

If you want to create additional site collections you always need to tell SharePoint which existing web application will host the new site collection (since a web application can host multiple site collections), or you need to create a new web application to host the site collection.

What's the need to create multiple web application?
1. Every time a new web application is created, SharePoint creates a new content database. All the data in the  sites associated with the web application is stored in this content database. If site collections grow really fast and the content database approaches the size limit, administrators can move one site collection to a new content database while continuing to use the same web application. This is called splitting the content database.

2. 2nd reason is security. All the execution of all the site collections associated with a web application occurs in the application pool. If you want to ensure that certain code from one site collection is never allowed to run in the same process as the code from another site collection, you can use a different web application to host the second site collection. This ensures that different application pools are used for the two site collections. For each site collection you can you can create unique set of users, administrators etc.
Subsites that are created within the site collection inherit the permissions and navigation structure from the parent site.
A web application can contain multiple site collections and a site collection can contain multiple sites. A site can contain multiple sub sites.

About Pages:
There are 3 types of pages associated with SharePoint environment and they are Masterpages, Site Pages & application pages.
Master Pages are pages in SharePoint that define the look and feel of multiple pages in SharePoint.
Site Pages are pages that support user customization through the SharePoint user interface and tools such as SharePoint Designer. These pages are stored in content database. If every page was customized then all the pages requested would need to be retrieved from the content database and loaded into memory. This has an impact on performance and scalability.
But Application pages does not support customization. They are deployed once per web server to the file system (not to the content database). All application pages are stored in the SharePoint hive at the location {SharePointRoot}\TEMPLATE\LAYOUTS. Application pages are accessible from any site in the farm.
Example is Settings.aspx page.

Saturday, September 24, 2011

What is Sandbox Solutions in SharePoint 2010?

- No comments
SharePoint Sandbox solution is a new feature in SharePoint 2010. You can develop some elemets using Sandbox solution. It does not require IIS reset. So if you are developing something that needs an IIS reset then in that case you can not develop that element as Sandbox.

In MOSS 2007, only farm administrators can install/deploy developer solutions. But Now site collection administrators can deploy solutions.

There are something that we can not do in Sandbox ssolution like we can not create visual web part.

They don’t allow database access, they don’t allow web services or data services calls, and they don’t allow access to all the objects in the SharePoint object model.

You can only work with objects within the site collection to which sandboxed solution is deployed. You can not do any GAC deployment.

Inconsistent accessibility: parameter type in Interface is less accessible than method error

- No comments
I got this error in SharePoint 2010 using Visual Studi 2010 at the time of creating a connected web part. You can check the post here.


I got this error because I have not make that interface to public. As soon as I got made than interface to public, the error removed.

Thursday, September 22, 2011

How to create a Document Library in SharePoint 2010?

- No comments
Introduction:
In this article we will discuss how to create a document library in SharePoint 2010. In my previous articles we have discussed steps to create a SharePoint 2010 list.

Description:
We have already discussed about the importance of Document Library in SharePoint 2010.
Thease are the steps to create a Document Library in SharePoint 2010.

Step-1:
Open your site then goto SiteActions and then from the SiteActions menu click moreoptions .

Step-2:
Then the create window will open, click Library i.e under Filter By tag then select Document Library.



Step-3:
Click moreoptions from the right side of the window.

Step-4:
Then provide the name and description for the Document Library.

Step-5:
Under the document version histroy area click Yes and leave all the other options as default.
Then click the create option.

Step-6:
Then one processing window will going to appear then after you will find that Document Library getting
created.

You can also check some SharePoint list and document library topics here.

Tuesday, September 20, 2011

How to attach a workflow to a content type?

- No comments
A SharePoint workflow can be attach to a list, site or to a content type in SharePoint 2010. But there are only two options in the workflow wizard: list or site workflow. So how do you associate workflow with a content type? In order to associate workflow with a content type you have to change the AssociationCategories element value in the workflow’s Elements.xml file to ContentType.

For this Double click the Elements.xml file for the workflow to open it.
Locate the AssociationCategories element and change its value to ContentType  like:
<AssociationCategories>ContentType</AssociationCategories>

Click on the Workflow1 project item folder and open the Properties window. And change the value of the Auto Associate property from True to False.

Then press F5 to build, package and deploy the project.
Then go to the Site Actions ->Site Settings and under document content types click the Document content type.

Now click the workflow settings link, the Workflow settings page is displayed. Click the Add a workflow link, the add a workflow page will be displayed and from there you can select the workflow for the content type.

Thursday, September 15, 2011

What is the importance of a Document Library in SharePoint 2010?

- No comments
SharePoint 2010 provides a great feature i.e Library which is the place to store documents, pictures, forms or web pages.

- This Library is also the location to create, collect, update and manage files with other team members. It contains the list of files and the information about those files.

- By the help of document libraries you can store the document on the SharePoint site as well as in the local computer's hard disk.

Friday, September 9, 2011

Download SharePoint 2010 Videos Tutorials

- No comments
Hello SharePoint !!!
One of our sponsor now providing more than 8GB of SharePoint video tutorials just for Rs1000.00 now. You can drop a mail to fewlines4biju@gmail.com and they will contact you soon.

Contents:
Introduction to SharePoint,List, Libraries, What's new in SharePoint 2010?, Visual Studio 2010 development tools for SharePoint 2010, Working with SPQuery, SPSiteDataQuery, LINQ to SharePoint, Caml Query, WCF to Data Services, DataViews etc, Microsoft SharePoint 2010 Search and FAST search, Development with REST and Linq in SharePoint 2010,Creating Workflows with SharePoint designer 2010, Working with Infopath forms, Working with Visio,Building solutions with Business Connectivity Services using Visual Studio 2010 etc

Click below
Tutorials on SharePoint Designer 2010

And many more ...

So order now for the DVD here

Thursday, September 8, 2011

Add and edit SharePoint 2010 List items

- No comments
Introduction:
In this article we will discuss about how to add and edit list items in SharePoint 2010. In my previous posts I have already explained detail steps about how to create a SharePoint 2010 list and Document library.

Description:
Once we have finished creating a SharePoint 2010 list it is time to add new item to SharePoint list and also to check how to edit existing items from the list.

Thease are the steps to add and edit list items..
Step-1:
On the quick launch click your list.
Step-2:
Then click on Add new item, your list name:new item window will open.


Step-3:
Provide one title in the title text box.
Step-4:
Give the proper value for priority,status,% complete or else better you can leave the default values.
Step-5:
Provide description in the description text box.
Step-6:
From the Start Date text box remove the todays date and provide the as per your requirement.

Step-7:
Leave the due date text box empty.
Step-8:
Then click the save button, it will going to redisplay your list page.
Step-9:
Then select your list item and click Edit itm from the ribbon, then that editable window will
open.Now you can provide the new values and then click save button.


You can also check some SharePoint 2010 list and library articles.

Tuesday, September 6, 2011

Create List in SharePoint 2010

- No comments
Introduction:
In this article we will discuss how to create a SharePoint list using browser. In the previous article we have discussed how to create SharePoint list using SharePoint 2010 designer. You can also check how to create list in SharePoint 2010 using SharePoint Server Object Model.

Description:
First just create your site according to those steps described here, then open your site by the help of the URL in browser.

Thease are the steps required to create a List
Step-1:
First open your site.

Step-2:
Go to Site Actions and click more options, then the create page will open


Step-3:
Inside the create page just click List(i.e under Filter By option), then the lists are going to display.

Step-4:
Now click the list Tasks, we can also create other lists by clicking other options like
Announcements,Calendar,Contacts etc but here i am going to create the task list so just click option Tasks.
Step-5:
Then click more options(i.e situated on the far-rightside).

Step-6:
Then Provide one title in the title text box and Description in the description textbox.

Step-7:
Now you can check the option to display the list on the Quick Launch, you can select the yes or no radio buttons.

Step-8:
Then you click the button Create to complete the List creation.
You can also check some SharePoint Forum Topics here.

Monday, September 5, 2011

What are Lists in SharePoint 2010 and their types?

- No comments
Lists in SharePoint 2010 are just like spreadsheets that many person can use simultaneously on the internet.

SharePoint Lists are like web-based and editable tables that allows multiuser interactions against a centralized, extensible table having set of rows and columns.

All the web pages needed to create, manage, update and delete a list and its data are automatically generated by SharePoint . These are as follows:

Agenda: This list is required when for outlining the meeting topics ,who will cover the topic and the duration he will take to complete.

Announcements: This list is required for sharing news, status and other informations.

Attendees: Create the list to mention who will attend the meeting.

Calender: This list is required to mention upcoming meetings, deadlines and other events.

Categories: This is basically used in case of blog site to categorize blog  posts.

Circulations: This list is required in case of group work site to distribute information to selected users.

Comments:This is require to capture comments on blog posts.

Contacts: To share information about customers and partners.

Custom List: This list is used to specify your own columns.

Decisions: This is required in case of meeting workspace to keep track of decissions made at the meeting.

Directions: This is used in case of social meeting workspace to capture directions to various locations.

Discussion Board: Use to manage discussion threads and ensuring that only approved posts appear.

Document Library: Use to share a collection of documents.

External Data List: Use to connect with external content types.

Form Library: Use to manage XML based business forms like status report.This requires an XML editor like InfoPath.

Issue Tracking: Use to manage a set of issues or problems and assign them priority wise.

Links:This is required when you have links to web pages or other resources that you want to share.

Objectives: This list is required to give the information to the attendees to know the goal of the meeting.

Phone Call Memo: Use to capture and store phone messages.

Picture Library: Use to manage picture i.e displaying pictures such as thumbnails,download options and slide show.

Posts: This list is used in case of blog site to store all blog posts.

Project Tasks: This is required a graphical view like a Gantt chart of a group of work items that you or your team needs to complete.

Survey: This lists give the idea taht allow you to quickly create questions and define how users provide their answers.

Tasks: when you track a group of work items that you or your team must complete.

Sunday, September 4, 2011

SharePoint 2010 Interview Questions

- No comments
  1. Explain the structure of SharePoint server object model.
  2. What is a Web application?
  3. What is a Site collection?
  4. What is a content database? What are stored in content db?
  5. What is site and My site?
  6. What is the security mechanism improved in SharePoint 2010?
  7. What is claim based authentication?

Saturday, September 3, 2011

Download Microsoft SharePoint 2010 Web Applications: The Complete Reference Book

- No comments
SharePoint Article  |  SharePoint Jobs  |  SharePoint Forum  |  Register For Updates

You can download Microsoft SharePoint 2010 Web Applications: The Complete Reference book from the link.
You can also download Professional SharePoint 2010 Development with Visual Studio book: from here

What are the different users and permission levels in SharePoint 2010 while creating a new site ?

- No comments
If you are going to select use unique permissions option while creating a new site then users are required. Also you can check some SharePoint and Asp.Net Jobs.

SharePoint 2010 categorizes users of a site into three SharePoint groups . Thease are Visitors, Members, Owners.

Visitors: People or groups can only read the content of a site.

Members: They can only create and edit contents but can't create lists or manage site membership.

Owners: They have the capability for all aspect of creating and managing a site.
When users are added to a site ,they must be added to a sharepoint group or associated with at least one permission level.

SharePoint provides 5 permission levels. These are Read, Contribute, Design, Full Control, Limited.

Read: Here user can only view site content.

Contribute: The user can view,add,update and delete the content of a site.

Design: Here user can view,add,update,delete,approve and can able to customize the content of a site.

Full Control: The user can able to do every operation over the site content.

Limited: The user has permissions to do operations over some specific lists,document libraries, folders, list items .
The Visitors group has the permission level Read.
The Members group has the permission level Contribute.
The Owners group has the permission level Full Control.

Wednesday, August 31, 2011

Create site collections in SharePoint 2010

- No comments
Before creating site collections, you can read how to create a web application in this tutorial. You can see this article if you want to create a site using SharePoint designer.
Site collection is a hierarchy of sites having one top level site with a collection of child sites below it,the top level site is called as Parent site.
Thease are the steps to create a site collection
Step-1:
Go to Start->All Programs->Microsoft SharePoint 2010 Products->SharePoint 2010 Central Administration.


Step-2:
Click the option Create Site Collection under Application Management.


Step-3:
Then you can use the default web application or else you can cahange the web application by clicking web application dropdown ->Change Web Application.



Step-4:
Then provide Title,Description and the Url name.


Step-5:
Then select a template so goto Collaboration->Team Site, you can also create Blank Site,Document Workspace,Blog,Group Work Site like this.


Step-6:
Provide Usernames in both the two username textboxes,select a Quota template(its not mandatory) and then click ok.

Then one new window is going to open with a message Top-Level Site Sucessfully Created with your Url.



Thursday, August 25, 2011

Comparision between Wss and SharePoint

- No comments
Wss Primary Benefits:
  • It provides a feature workspace ,which is responsible for teams to share documents and informations .
  • Another feature Libraries provide a better way of creating an important document.
  • Deploying team collaboration site is easy so no need for skilled resources.
  • It gives acceptable security policy,recycle bin item retrieval and document versioning features.
  • Facility of sharepoint designers to customize your teamsite.

SharePoint Primary Benifits:
  • It is helpful to create,store,manage centrally using document library settings to define workflow.
  • It has features like page layouts and master pages to manage webcontents.
  • No need for manual data entry because it provides infoPath client based forms.
  • For automating content approval and publishing process it provides workflow tools.
  • Dashboard capabilities,key performance indicator,Report center is here to manage critical bussiness data in a better way.
  • Search center,Business Data Catalog,Excel services are here to find information and acess the information from the browser.
  • Working offline with lists and libraries using outlook is another important feature of sharepoint.

What is SharePoint?

- No comments
SharePoint is a web based platform having tools and technologies by which different digital information of an organization is going to create, store, share and manage in a centralized location.

This helps the business user to create,deploy and manage team websites with out depending upon developers.

This provides lists, libraries and webparts which can help to transform team websites into business applications.

SharePoint Prouducts and Technologies has two offerings like Windows SharePoint Services 3.0 is free version with windows server 2003 with functionality need for Document management and Collaboration with lists and document libraries.

Microsoft Office SharePoint Server 2007 is newer version to SharePoint Portal Server 2003. It provides all the features of wss 3.0 as well as some new features like Excel, Form services, Business Data Catalog, Business Inteligence and Search.
Microsoft Office SharePoint Server 2007 (MOSS 2007) provides tools and features like Built-in webparts,like a site aggregator and content query webpart and Workflow Templates.

SharePoint foundation 2010 is for smaller organizations for the purpose of lowcost, secure, web based collaboration and for the purpose of organize documents,coordinate schedules and participate in discussion through team workspaces,blogs,wikis and document libraries.

But SharePoint server 2010 includes some additional features like search, secure store service, External data webparts, Profile pages, External data in workflows, reach client integration.

Location of Microsoft.SharePoint.dll

- No comments
Sometimes if you are doing something in a clinet machine like XP machine. You will not get the Microsoft.SharePoint.dll.

For this you should go to the machine where SharePoint is installed and you will get the Microsoft.SharePoint.dll from the below location.

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI

Wednesday, August 24, 2011

Important web parts in SharePoint 2010

- No comments
In this article we will discuss some important SharePoint 2010 web parts.


List View Web Part: It shows list or library data. When a new list or library is created, a List View Web Part with the same name is created to go with it.

Image Web Part: It enables to show picture in a page.

Page Viewer Web Part: Enables you to add content from another location to a page. This content can be another web page (or web application), a file share, or even an individual document and is typically displayed in an IFRAME on the current page.

Form Web Part: Enables you to add HTML form field elements and other content to a page.

Content Editor Web Part: This web part allows client side scripts and also used to show static rich text in a page.

XML Web Part: Responsible to display and style XML data.

Data View/Form Web Part: This web part is available only in SharePoint designer. You can not add it from the user interface.

Tuesday, August 23, 2011

What is Portal Technology?

- No comments
Portal Technology is a webbased technology by which different important informations like contact lists of all the employees, Task lists, HR department information, other department information, Projects information and different rules and regulation inside one organization are going to create,store and manage securely in a centralized location. Employees and decision makers can acess that information inside the company as well as from remote location.

Monday, August 22, 2011

How to make the content type as sealed in SharePoint 2010?

- No comments
Suppose you need to design a SharePoint 2010 application that created a content type. And you need to design in such a way that users are not able to change the content type from the SharePoint 2010 user interface. To achieve this you have to make the content type as sealed and deploy as a feature.

You can do this by using SharePoint 2010 object model. Just get the particular content type and set the Sealed property to true like below.

 using (SPSite currentSiteCollection = new SPSite("URL of the site collection"))
           {

            SPContentType contentType = currentSiteCollection.RootWeb.ContentTypes["ContentTypeName"];
           contentType.Sealed = true;
           contentType.Update();
            }

Remember that you must be a administrator for the site collection to make a seal content type.
If you want to unsealed the content type then just make the Sealed to false like below.

 using (SPSite currentSiteCollection = new SPSite("URL of the site collection"))
           {
            SPContentType contentType = currentSiteCollection.RootWeb.ContentTypes["ContentTypeName"];
        contentType.Sealed = false;
           contentType.Update();
            }

Logical and Physical Architecture of SharePoint

- No comments
In this article we will discuss about logical and physical architecture of SharePoint 2010.
Here are the common servers available in the SharePoint farm.

Front-end web servers: These servers responsible for publish web sites which are called as web applications.

Application servers: These servers host back-end services, such as the search index service, the crawler service etc.

Database servers:These servers store configuration and content data for the entire SharePoint farm.

A single tier deployment is something like the farm which is build based one single server only.
A two tier deployment is something like: It should have two front-end web servers and a back-end database server.One of the Web servers hosts the Central Administration site and the other handles additional farm-related tasks, such as serving content to users.

And a 3 tier farm has many dedicated application servers.

SharePoint always use a Microsoft SQL Server database for storing farm configurations and content. It creates a main and fundamental farm configuration database as soon as you deploy a new farm. Usually this database is called SharePoint_Config or SharePoint_ Config_<UniqueId>.

Friday, August 19, 2011

SharePoint 2010 Search

- No comments
Search is much more improved now in SharePoint 2010 over MOSS 2007. There are 2 major engines used for SharePoint 2010 Search.

1. SharePoint 2010 search engine.
2. FAST Search Server 2010 for SharePoint

1. SharePoint 2010 search engine: This has a lot more new capabilities and impreoved features for the SharePoint users and administrators. Like:
  • SharePoint 2010 Search Engine provides a new, rich UI.
  • There is a Refinement Panel where user can filter the results based on meta data fields.
  • In SharePoint 2010 now boolean expressions are valid and can be processed in the search query.
  • Based on the previous queries, it will show suggestion while typing a search query.
  • A new feature Did you mean suggestion is implemeneted.
  • Enahanced relevance for better matching and ranking capabilities.
  • Now you can federate the search result from a remote search service and display them in a separate web part as a part of the search result in different page.
  • With the results for your query, SharePoint 2010 also provides related searches for additional results from previous searches.
  • Now you can see all kind of office documents in the browser with the View in Browser capabilities.
  • Very much improved people search. you can search on the basis of phonetic search, presence, organization and recent content information, Refinement Panel with filtering status skill.
  • Now you can do people search using nick name matching.
  • The more active a user is in a special topic area, the more relevance he or she will get in the search results.
  • Now search is integrated with Windows 7. The search results and all associated data will be displayed in Windows Explorer.
For administrators Now search comes as a separate service rather within SSPs.
  • Now administrators can use power shell to create or manage search service applications.
  • A new search dashboard provided that contains lots of useful information like status of the system, crawling, queries.
We will discuss FAST search in a different posts.

Thursday, August 18, 2011

ULS : Unified Logging Service in SharePoint 2010

- No comments
This service is responsible for saveing or reporting logs in SharePoint. It report 3 different locations:
  • SharePoint trace logs
  • Windows Event Log
  • SharePoint logging database
SharePoint trace logs:
These are simple text files and by default the logs are located at the LOGS directory of the SharePoint root at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14. The naming convention of the Log file is machinename-YYYYMMDD-HHMM.

And a new log file is created in every 30 minutes.

SharePoint 2010 adopts NTFS file compression for the Logs folder, so it will take less space. In SharePoint 2010 also you can customize your logs from the Central Administration.

Another feature is you can change the location of the Log from the Default location to a different location from the central administration. For this Go to Central Administration -> Monitoring -> Confi gure Diagnostic Logging. Also you can configure the number of days the trace logs are kept. Also you can use power shell command by using the following command: Set-SPDiagnosticConfig -LogLocation e:\Logs

You can also assign the amount of space the log will consume from the drive. SharePoint maintains a GUID for each conversation between a user or process. When an error occured an administrator can use the correlation ID to track the issue.

You can also check SharePoint Articles and SharePoint Jobs.

Wednesday, August 10, 2011

Different sharepoint 2010 workflow activities

- No comments
Here we will discuss about SharePoint 2010 workflow activities. In our previous article we have discussed about How to attach a workflow to a content type?

Code: The code activity allows you to drop code into the template.

If-else: if-else activity allows you to make logical decisions in the workflow.

Parallel: The parallel activity allows you to run two or more trunks of activities in parallel.

Terminate: The terminate activity terminates the workflow.

While: A while activity is used for looping.

CopyItemActivity: This CopyItemActivity activity allows you to create a copy of a list item or document in another document library or list.

CreateTask: The CreateTask activity creates tasks in task lists.

OnWorkflowModifed (and EnableWorkflowModification)—OnWorkflowModified activity responds when the workflow is modified. With Workflow Modifications, users can change the behavior of a workflow after it has already started.

sendEmail—The sendEmail activity uses the exchange server specified in SharePoint Central Administration to send emails to users.

SetState—The SetState activity is used to set the state of the workflow.

You can also check more articles on SharePoint 2010 Workflows.

Tuesday, August 9, 2011

Internet Explorer cannot display the webpage in sharepoint

- No comments
After creating a site collection in SharePoint 2010, when I visited the URL I got the error as "Internet Explorer cannot display the webpage". The error you will get in SharePoint 2010 very often. One solution I am trying to say is while After creating the Site collection and before visiting to URL, you should go for an iisreset /noforce. Run this command on your Run window and then try visiting the URL that will work.

Monday, August 8, 2011

SharePoint 2010 Object model

- No comments
There are 4 type of SharePoint object model are available. SharePoint server object model will use for any SharePoint code that runs on the SharePoint server. Another object model known as Client object model for .Net 3.5 or higher client applications. Another object model for Silverlight applications and the last one is JScript object model.


Examples of SharePoint Object model:
Microsoft.SharePoint.SPList : A SharePoint list that can be used to modify the contents of a list.


Microsoft.SharePoint.SPWeb : To work with a SharePoint site.


Microsoft.SharePoint.SPUser : To work with a SharePoint user.


Microsoft.SharePoint.SPContext : The context of an HTTP request that
gives information, such as the current web application, site collection, list, etc.

Microsoft.SharePoint.SPListItem: To work with an item in a SharePoint list.



Microsoft.SharePoint.SPSite : To work with a SharePoint site collection.


Microsoft.SharePoint.SPFile : A file in a SharePoint site, for example, a web part page, a file in a folder, or an item in a document library.


Microsoft.SharePoint.SPField : A column defined for a SharePoint list.


Microsoft.SharePoint.SPQuery : A query (in CAML) that can be used to return required list items (SPListItem).


Microsoft.SharePoint.SPSecurity : Provides a method called RunWith-ElevatedPrivileges that lets you run code with more permissions than the one the current user has.


Microsoft.SharePoint.Administration.SPWebApplication: An IIS web application that has methods and properties for modifying web applications settings and administering at the web application level.


Microsoft.SharePoint.Administration.SPFarm : A SharePoint Farm that has methods and properties for modifying farm settings and administering at the farm level.


Microsoft.SharePoint.SPException: An exception thrown by SharePoint.


Microsoft.SharePoint.SPListItem-Collection:The collection of SPItem objects from a SharePoint list (SPList) or query (SPQuery).


Microsoft.SharePoint.SPFolder: A SharePoint folder in a list or document library.


Microsoft.SharePoint.Utilities.SPUtility: A utility class that provides methods like SendEmail etc.


Microsoft.SharePoint.SPSite-DataQuery : A query that can act against multiple lists in multiple sites in the same site collection.