How to create document set in SharePoint 2010

Document Set is used to manage set of documents as a single object
It is a new feature introduced in Share Point 2010.

Advantages of using Document Set in Share Point 2010.

Work Flow can be associated to a whole document set.
We can upload project related documents in Document set.
We can maintain the version of all related documents using Document set.
We can manage permissions easily.
We can able to set customizable welcome page for Document Set.
We can download all the zip files easily by using Document Set.
There is no limit that no of documents exit in Document set.

Folders also used to manage set of documents as a single object.
But for folders we can't start work flow.
Customizable welcome page for all document sets.

Now I will Explain How to Create Document Set.


Navigate to your share point Site Actions->Site Settings.

Navigate to Site Collection Administration ->Site collection features


By default I will not active, click on that feature to Activate




 Now I am creating a document library I give name as Document Set.
                             

Click on that Created Document Library ->Navigate to Library Settings.
                              
Navigate to General settings->Click on Advanced Settings
                         

Allow Management of content types to Yes.
              

Click OK.

In Library settings page we can able to see Content Types.
Click on Add from existing site content types.

  

In Available site Content Types->Select Document Set->Add  
                   
Click OK.
Now we want to give name for Document set.
Navigate to Library settings->Content Types->Click on Document Set
                        

Click on Name and Description tab->Enter Name ->Click OK




 Now click on Created document library Name → Document tab



Go to New Document->
Now we are able to see the created document set with name Share Point Project
                               
Click on that Share point Project ,I am give name as Project Documents and Click Ok.

Now are able to seen the created document set



Now are able to seen the created document set

Click on that Project Documents.
Click on documents tab->Click on Upload Document.

Now we are able to see my uploaded documents.



The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

                                                                        
Easy solution for this error is we have to enable the State Service for the current web application.

For this error there are three possibilities to check .

1)In Central Administration-> Application management ->In Service Application->Manage service application

Check weather State Service is started or not.                                                                                            



If it is already started then go for another solution.

2)Go to Central Administration-> Configuration Wizards → Farm Configuration →Select Start the Wizard.

                   

Click on Start the Wizard
Check weather State Service is checked or not. If it is checked click next

Skip the Step->Finally click Finish.

3)Central Administration-> Application management->Configure service application associations

Click on the web application that your a facing this Issue,here my state service is disabled.
Enable and check it once..


Finally click OK...and reload the page it will work 100% -:)

Realtime SharePoint Interview Questions

Realtime SharePoint Interview Questions
what is Content type hub?
connector in search?
How to reset index in search?
How to hide part of search results to particular users?
what is Audience Targeting?
What is ECMA script?
Need write code for how to open list (don't forgot to start with try and catch)?
Write caml query ?
SharePoint timer jobs?
what is content type and site column?
what is bcs?
what is site definition and site template?
feature stapling?
what is server object modal  hierarchy ?
different locks in timer jobs?
how to break the writing logs in 14 hive?
how to differentiate asp.net request and SharePoint request?
what is security trimmed control in master page?
what is custom feature?
difference b/w master page and page layouts?
method activities and  event activities in custom workflow?
difference b/w designer work flow and custom workflow?
what is sand box solution and what we can deploy and cant deploy and limitation?
workflow vs event listener?
What is Content retain and Expiration  ?
What is document set?
What is search application service ?
User profile configuration?
What is ZONES in share point?
Whats is METADATA?
What is managed path?

How to enable anonymous access in SharePoint 2013

In  web application level we can set anonymous access in SharePoint.

Web Application Level

          When we create Web Application in SharePoint you can set the anonymous access at the web application level. It will allow the entire anonymous user to access the site.


-->      Go to SharePoint Central Administration site  select “Application Management” -> “Manage web application"

-->Create "New" web application                                                                                                            


-->Choose “Yes” for “Allow Anonymous”                                                                                                                                    

 Already existing site we have to set anonymous, we have to do two steps

1)Authentication Provider

2)Anonymous Policy

Authentication Provider


                    Go to SharePoint Central Administration site  select “Application Management” -> “Web Application Management”


--> In Web Application Management screen select the particular web application in ribbon click on Authentication providers.






--> In authentication Provider select the zone in which you need to change the authentication.


-->You can edit the authentication and set the anonymous access                                                                      

Anonymous Policy

--> In Web Application Management screen select the web application in ribbon click on Anonymous Policy.
-->Set the Anonymous policy for each zone

SharePoint Site Collection Level

       As a first step you need to enable anonymous access at web application level and go to the site collection in which you want set up the anonymous access.

Go to Site Settings, click on “Site Permissions”

 Click on “Anonymous Access”.

Give Anonymous permission to the entire web site, unchecked the “Require Use Remote Interfaces Permission" and click “ok” to save the changes.

SharePoint Library Level

    Go to any library and click on “Library settings”
I am going to pages library

Go to the "Permissions for this document library"

Click on “stop inheriting”

Click on “Anonymous Access”

Set the permission for the anonymous user                                                                                            

By default an anonymous user cannot add and edit items in a document library, which is disable, even with anonymous access enabled. So for a page library all options will be grayed except “View documents”.

Application Page Level


You need to deactivate the Limited-access user permission lockdown mode feature to allow anonymous users to access application level

Finally ,my anonymous site looks like this









Limited-access user permission lock down mode feature in SharePoint 2013

Limited-access user permission lock down mode feature in SharePoint 2013

Limited-access user permission lock down mode feature 


      This feature Limits the access permission for anonymous users on application pages.

 Example:

      http:/<SharePoint Website>/_layouts/viewlsts.aspx
This page will shows all content of the site, and lock down mode can be turn on or off.
Lockdown mode is available as a site Collection Feature! And Site collection administrator can control it using the UI
Site settings > Under Site Collection Administration section > Site Collection Features > Active/Deactive

Note:

Limited-access user permission lockdown mode feature depends on (SharePoint Server Publishing Infrastructure) Feature and it’s important for SharePoint internet websites.

Advantages of Limited-access user permission lockdown mode feature:

Site collection Admin can control without need to use Power shell or get Farm Admin permission.

Secure publishing sites application pages from anonymously access.

Filter data in datagridview in c#

In this article I will explain how to create filter by entering id or name in text box.

My out will be looks like this Now i am entering Empid and Empname





My solution looks like this


Write the code code in Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;


namespace IdSearch
{
    public partial class Form1 : Form
    {
        BindingSource bs = new BindingSource();
        public Form1()
        {
            InitializeComponent();
        }

        public void displayDataGridView()
        {

            using (SqlConnection con = new SqlConnection("Data Source = CHINNU;Initial Catalog = dotnetdb;Uid = sa;Password = password123;"))
            {
                SqlCommand cmd;
                cmd = new SqlCommand("select * from Employee", con);
                cmd.CommandType = CommandType.Text;
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                dataGridView1.DataSource = ds.Tables[0];

                dataGridView1.AutoGenerateColumns = false;
                dataGridView1.AllowUserToAddRows = false;
            }

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            displayDataGridView();
        }

        private void txtfind_TextChanged(object sender, EventArgs e)
        {
            try
            {
            
                bs.DataSource = dataGridView1.DataSource;
          
               bs.Filter = string.Format("EmpId LIKE '%{0}%' OR [EmpName] LIKE '%{0}%'", txtfind.Text);
                dataGridView1.DataSource = bs;
            }
            catch (Exception ex)
            {
                
            }
        }

       
    }
}

To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges

To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges.


I am deploying my solution at that time it display an window I just closed it.



After closing It show an error message like this.


To interact with Share Point projects in Visual Studio, your system user account must have administrator privileges


In Windows Start, find the Micro Soft Visual Studio 2010,Right Click Select Run as administrator.


                          

Now we are able to deploy with out this Error.

How to change indicators on kpi dashboard designer

Select Indicator and click on “Set Scoring Pattern and Indicator” as shown fig below
It shows “Edit Banding Settings”  window  , click on next

\In available Indicators we can change the indicator, I am selecting “Up Trend B – Medium “click on next and finish

Now it shows indicator like this, depends on scoring Pattern we can change Score “Best, Threshold 2 , Threshold 1 and Worst” as shown in fig