Friday 30 November 2012

How to connect FBA site


ClientContext clientContext = new ClientContext("http://YourUrlHere");
clientContext.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
clientContext.FormsAuthenticationLoginInfo = new FormsAuthenticationLoginInfo("username", "password");

Monday 26 November 2012

Changing URL of Sharepoint 2010 List

1 - Open Sharepoint 2010 site in Sharepoint Designer 2010.
2 - Click on All Files view.
3 - From the report click on Lists and from the left pane expand lists and then select the list for which the URL has to be changed.
4 - Then right click on the list name and from the context menu click Rename.
5 -If the name is changed here then the URL of the list is also changed to reflect the name change.

Sunday 25 November 2012

How to deploy .wsp file using Visual Studio 2010 for SharePoint 2010


To deploy any solution package in any local environment in Visual Studio 2010 simply right click on the project and deploy. But to deploy the same thing in the production server we will need to deploy through .wsp file.

Right click on the project/solution in Visual Studio 2010 then choose package. If you are building the project/solution in debug mode then you will get the .wsp file inside the Bin\Debug folder and if you are building the project in release mode then you will get the .wsp file inside the Bin\Release folder. This wsp file is needed to deploy in the production environment.

Using browser:

Go to the Central Administration -> Site Actions ->Site Settings -> Galleries –> click on Solutions.
Click on Upload solution and then browse to the wsp file from the ribbon.
Once you will click Ok then activation window will appear. Click on Activate.
Then you can use the solution.

Using PowerShell:

To add a solution using PowerShell:
Open the SharePoint 2010 Management Shell. You can get to this by going to Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell.
Add-SPSolution {path of wsp file}

To deploy the solution using power shell
Install-SPSolution –Identity {path of wsp file}.wsp –WebApplication http:// -GACDeployment

To update solution
Update-SPSolution –Identity {path of wsp file}.wsp –LiteralPath {local path of wsp file}wsp –GACDeployment

To uninstall solution
Uninstall-SPSolution –Identity {path of wsp file}.wsp –WebApplication http://

Remove solution
Remove-SPSolution –Identity {path of wsp file}.wsp

Using Stsadm:

Add the solution
stsadm -o addsolution -filename {path of wsp file}

Deploy the solution
stsadm -o deploysolution -name {path of wsp file} -url {URL}

Retract solution:
stsadm.exe -o retractsolution -name {path of wsp file}.wsp –URL

Delete Solution
stsadm.exe -o deletesolution -name {path of wsp file}.wsp

Saturday 17 November 2012

How to backup individual page in sharepoint



1. Open the site in sharepoint designer and select(or (highlight) the page you want to backup.
2. Goto File -> Save As and save it to your local desktop.
       or
   Click on the "Export File" option from the ribbon and save it to your local desktop.
3- Copy the file which you saved in the desktop.
4- Go to your production, open your site collection in the sharepoint designer.
5- Go to site pages -> Paste the file which you copied.
   Sharepoint designer automatically saved the page in the database.
6- Open the page using browser by navigating your site.

Thursday 15 November 2012

Change Central Administration port number in SharePoint 2010


1- On the Start menu, click All Programs.
2- Click Microsoft SharePoint 2010 Products.
3- Click SharePoint 2010 Management Shell.
4- At the Windows PowerShell command prompt, type the following command:
               
                    Set-SPCentralAdministration -Port <PortNumber>

     Ex- Set-SPCentralAdministration -Port 30217


Note : The Set-SPCentralAdministration cmdlet blocks the following ports:
           Lower than 1023
           Higher than 32767
           443 (SSL)

1- If you want to set the Central administration port to a port below 1023 then run the below command in Windows PowerShell command prompt
                 stsadm -o setadminport -port 81
2- Reset the IIS.
                 iisreset -noforce

How to change web application port number in sharepoint 2010


1st Way :

1- First open "Centeral Administration" ---> "Manage web applications" then select the site which you want to change the port for it, after that go up left and click the small arrow of delete button it'll open a menu, choose "Remove sharepoint from iis web site".
2- It'll open a popup box, choose your site from the drop-down-menu and choose "Yes" for (delete iis web sites)
3- If you go to your IIS manger you'll not find the site now.
4- Now we need to re-add our site with the new Port. From the same position, choose your site again then go up left and click "Extend" button.
5- Now a new popup window will appear, choose "Create a new iis web site" and add your new "Port".
6- Browse your site.

2nd Way :

1- First open "Centeral Administration" --->  Click Application Management ---> Click Configure Alternate Access Mapping ---> Click the web application you are trying to alter --->  Change the port number by altering the URL and click on Save.
2- Open IIS Manager ---> Select the SharePoint site that corresponds with the web application above  ---> Click Bindings ---> Select the current port ---> click Edit ---> change the port number ---> Save.

Saturday 10 November 2012

Your client does not support opening this list with Windows Explorer


1. On Windows Server 2008 Install "Desktop Experience" Feature. This will install the "Web Client service. Keep it to Automatic and make sure its Started.
2. Use IE 8 32 bit version and browse the SP site and check the explorer view. By Default it will open IE 8 64 bit version which continues to give the error regardless the "Web Client" service being started.

To install Desktop experience see the below link.
http://www.youtube.com/watch?v=cOyRFP6KuEI

Friday 9 November 2012

Create a blog site in Sharepoint 2010


1. Go to Site Actions - New Site
2. Click on Blog and enter a title as well as the desired URL name of the blog site, then click on Create.
3. Your new blog site will be successfully created.
4. To create a new post click on "Create a Post" option in "Blog Tools" category in the top right hand side of the page.
5. Then enter your post information and click on "Publish".
   -> Click the Publish command button to save the post as ready for public display. Once the publishing date has been reached, the post will automatically display on your site.
   -> Click the Save as Draft command button to save your current edit – the post will not be displayed to site visitors until you publish the post at a later time.
6. Your post will appear on the blog.


Publish a Blog Post previously saved as a Draft

To publish a blog post that you previously saved, follow these steps:

Click Manage Posts from the Blog Tools menu.
Check one or more posts whose Approval Status indicates Pending.
Select the Items tab from the List Tools ribbon menu.
Click Approve/Reject.
Select the Approved option from the popup dialog.
Click OK.

Calender Overlay In Sharepoint 2010


Calendar overlay is a new feature of SharePoint 2010. Basically it is used to display several calendars in one view. It’s possible to overlay different views of the same calendar – this helps to display colour-coded events in one calendar. It allows the user to create color-coded events in a calendar based on user-defined event categories, out of the box.

1. First create a calender list. Go to Site actions -> Click on More options.
2. Choose list from left side and choose calender form right side & give the name of calender list and click on create.
3. Add some items of different types such as meeting,business,holiday etc.
4. You can change the ouput format by selecting month,day or week format from the ribbon.
5. If you want to show the output in a colored format like meetings created will show in pink or business created will show in blue then in that case you have to use calender overlay feature.
6. Suppose there are three types. i.e. meeting,business,holiday. Then you have to create 3 new calender views for that first.
7. To create views click on calender option from ribbon -> click on create view option.
8. Choose calender view.
9. Give a suitable name for the view. In the filter option choose the column name from which you want to match such as Title, then choose "begins with" option from second drop down, enter the correct name in the textbox. Click on ok.
10. Repeat the above procedure again 2 times to create another 2 views.
11. Now the time to create calender overlay. Chhose the calender list. Click on calender from ribbon -> click on calender overlay.
12. Add each of colour-coded views by clicking New Calendar link.
13. Give the calender name,chhose the color from color drop down.
14. Click on Resolve button under the Web Url text box. It will show all the List names in the List drop down. Choose the name of the calender list from drop down .
15. All the view names for that calender list will show in the List view drop down. Choose your required List view. Click on OK.
16. Repeat the above step again for another two times.
17. Navigate to the list it will show in colored format settings by you.
18. If here extra lines will appear for every entry then do one thing.
19. Go to ribbon, click on calender -> modify view -> in the settings page set a false condition like title begins with tt.
20. Click on Ok. Now you will get your required output.

Monday 5 November 2012

Create Announcements List using Custom List


Use an announcements list to post news, status,post and other short bits of information you want to share with team members.You can create an announcement by using custom list also.

1. Create a custom list. Go to Site Actions -> More Options.
2. Click on list from LHS -> Custom List. Give a name of custom list and click on create.
3. Create two new columns in the list to give same functionality as announcement. Select Custom List ->
In the ribbon click on list -> List settings.
4. In the list settings page “Create column” option.
5. Create two columns i.e. body – multiline and expires – datetime column.
6. Add the list to the page where you want to disply. Go to page -> click on edit option in top link bar
-> Insert -> Web part -> Choose Lists and Libraries option -> Choose the list from RHS.
7. List will add to the page. Then set the setting for the list.
8. Click on list -> Choose List option from ribbon -> Modify View.
9. In edit view page choose option from Filter -> set Expires Greater than or Expires equal to [Today].
10. In the result only those records will display which have expired date more than today date.

Saturday 3 November 2012

Allow Enable Anonymous Access In SharePoint 2010 Sites


1. Open SharePoint 2010 Central Administration, Go to Application Management -> Manage Web Applications.
2. Select Your Site which you want to give anonymous user access and click on Authentication Providers icon in the top ribbon bar.
3. Click on Default Zone. Check the Enable Anonymous Access CheckBox and click on save.
4. Select your site and click on Anonymous Policy Icon In ribbon.
5. Select Default Zone from dropdown and select the permissions option you want to grant to anonymous users Selecting "None - No Policy" is recommended.
6. Close Central Administration and open your site collection for which you just had set anonymous access,   in browser with administrator account.
7. Click on Site Actions -> Site Permissions.
8. Click on Anonymous Access Icon on the top ribbon.
9. Select Entire Web Site Option and click on OK.

You can see the video tutorial by following the below link :
http://www.youtube.com/watch?v=RIxjKImNLUQ