Thursday, April 18, 2013

Application Page vs Site Pages


Application Pages:
1.These are the normal .aspx pages deployed within SharePoint. Most common of them are the admin pages found in _layouts folder.

2. These are deployed either at the farm level or at application level. If they are deployed within _layouts folder or global SharePoint Virtual Directory, then they can be used by any SharePoint application (available at farm level), otherwise they can be deployed at application level only by creating a virtual directory.

3. These are typical ASP.Net aspx pages and can utilize all of the functionalities available within ASP.Net including code-behind, code-beside, inline coding etc.

4. These are compiled by .Net runtime like normal pages.

5.They can only use master pages available on file-system not within SharePoint Content Databases and for the same reason, you will notice that _layouts pages can only use Application master page deployed within _layouts folder and cannot use any of your custom master page deployed within SharePoint master page library.

6. If you deploy your custom ASPX pages within _layouts folder or within SharePoint application using a virtual directory, you will not be able to use SharePoint master pages and have to deploy your master page within the virtual directory or _layouts folder.

7. Application Pages cannot use contents as this concept is associated with SharePoint Page Layouts not with ASP.Net.

8. Since application pages are compiled once, they are much faster

9.Normally application pages are not web part pages, hence can only contain server controls or user controls and cannot be personalized by users.

10. Easiest way to deploy your existing ASP.Net web site within SharePoint is to deploy its pages as Application Pages within SharePoint. In this way you can convert any ASP.Net web solution as SharePoint application with minimal efforts.

11. SharePoint specific features like Information Management Policies, Workflows, auditing, security roles can only be defined against site pages not against application pages.

12. Application pages can be globalized using Resource files only.


Site Pages
1.Site Pages is a concept where complete or partial page is stored within content database and then actual page is parsed at runtime and delivered to end-users.

2. Pages stored in Pages libraries or document libraries or at root level within SharePoint (Wiki pages) are Site Pages

3.You must be thinking why we should use such pages? There are many reasons for this. One of the biggest catch of the SharePoint is the page layouts, where you can modify page once for a specific content type and then you can create multiple pages using the same page layout with different contents. In this case, contents are stored within database for better manageability of data with all the advantages of a data driven system like searching, indexing, compression, etc and page layouts are stored on file system and final page is created by merging both of them and then the outcome is pared by SharePoint not compiled.

4. Site Pages can contain web parts as well as contents placeholders, and all of them are stored per page-instance level within database and then retrieved at run time, parsed and rendered.

5. Another advantage is they are at user-level not at web-application or farm level and can be customized per site level.

6. Since their definition is retrieved from database, they can utilize master pages stored within SharePoint master pages library and merged with them at run time for rendering.

7. They are slower as compared to Application pages as they are parsed every time they are accessed.

8. SharePoint specific features like Information Management Policies, Workflows, auditing, security roles can only be defined against site pages not against application pages.

9. Since they are rendered not compiled hence it is not easy to add any inline code, code behind or code beside. Best way of adding code to these pages is through web-parts, server controls in master pages, user controls stored in "Control Templates" folder or through smart parts. If you want to add any inline code to master page, first you need to add following configuration within web.config:

PageParserPaths
PageParserPath VirtualPath="/_catalogs/masterpage/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" /
PageParserPaths

10.To add code behind to SharePoint master pages or page layouts, refer to this MSDN article

11.Since Site pages are content pages, hence all SharePoint specific features like Information Management Policies, Workflows, auditing, security roles can only be defined against site pages.

12. Variations can only be applied against Site pages for creating multilingual sites.

13."SPVirtualPathProvider" is the virtual path provider responsible for handling all site pages requests. It handles both ghosted and unghosted pages

Wednesday, April 3, 2013

List Data Bind Using CAML Querry in Custom Webpart


private void GetData()
        {
            DataTable dtGlobal = new DataTable();
            using (SPSite oCurrentSite = new SPSite(SPContext.Current.Web.Url))
            {
                using (SPWeb oCurrentWeb = oCurrentSite.OpenWeb())
                {
                    SPList oListResource = null;
                    SPQuery spQueryResource = new SPQuery();
                    String queryResource = "";

                    oListResource = oCurrentWeb.Lists["Service Request"];                                                          
                    queryResource = @"<Where><And><Eq><FieldRef Name='123' /><Value Type='Text'>data</Value></Eq><Eq><FieldRef Name='Unit'/><Value Type='Text'>" + ViewState["GroupName"] + "</Value></Eq></And></Where>";                      
                    queryResource = String.Format(queryResource, "Status");
                    spQueryResource.Query = queryResource;                  

                    SPListItemCollection itemsResource = oListResource.GetItems(spQueryResource);
                    DataTable dtResource = new DataTable();                
                    dtResource = itemsResource.GetDataTable();
                    gvRInProgress.DataSource = dtResource;
                    gvRInProgress.DataBind();                  
                }
            }
        }

Redirect to SharePoint List Display Page with Particular Data Id using Custom Webpart


 protected void gvrCompleted_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "ViewItem")
            {
                GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                Label lblId = (Label)row.FindControl("lblID");
                Response.Redirect(SPContext.Current.Web.Url + "/Lists/Service%20Request/Item/displayifs.aspx?List=cd22a145%2D1a55%2D45fe%2D9d34%2D338fae0b808b&ID=" + lblId.Text + "&Source=http%3A%2F%2Fsyncgdc2068%3A5002%2FLists%2FService%2520Request%2FAllItems%2Easpx&ContentTypeId=0x01004044E3E1408A6B4BA734CD344CB08108");                                          
            }
        }

Check the SharePoint Login User Name in SharePoint Group


private void getGroup()
        {
            SPSite oCurrentSite = new SPSite(SPContext.Current.Web.Url);
            SPWeb web = oCurrentSite.OpenWeb();

            SPUser user = web.EnsureUser(SPContext.Current.Web.CurrentUser.Name.ToString());
            SPGroupCollection groups = user.Groups;

            foreach (SPGroup group in SPContext.Current.Web.Groups)
            {
                foreach (SPUser user1 in group.Users)
                {
                    if (user1.Name == user.Name)
                    {
                        String strGroupName = group.Name.ToString();

                        ViewState["GroupName"] = strGroupName;
                    }
                }
            }
        }

SharePoint List Item Update Using GridView Row Command



 protected void gvRInProgress_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            Label lblId = new Label();
            Label lbllistname = new Label();
            TextBox txtComments = new TextBox();

            using (SPSite oCurrentSite = new SPSite(SPContext.Current.Web.Url))
            {
                using (SPWeb oCurrentWeb = oCurrentSite.OpenWeb())
                {
                    if (e.CommandName == "SendBack")
                    {
                        GridViewRow row = (GridViewRow)(((Button)e.CommandSource).NamingContainer);
                        lblId = (Label)row.FindControl("lblID");
                        lbllistname = (Label)row.FindControl("lblListName");
                        txtComments = (TextBox)row.FindControl("txtComments");

                        if (lbllistname.Text == "Service")
                        {
                            SPList listResource = oCurrentWeb.Lists["Service Request"];
                            SPListItem itemResource = listResource.GetItemById(Convert.ToInt32(lblId.Text));
                            if (itemResource["Comments"] != null)
                            {
                                if (itemResource["Comments History"] != null)
                                {
                                    itemResource["Comments History"] = itemResource["Comments History"] + "," + itemResource["Comments"];
                                }
                                else
                                {
                                    itemResource["Comments History"] = itemResource["Comments"];
                                }
                            }
                            itemResource["Comments"] = txtComments.Text;
                            itemResource["Status"] = "Pending";
                            itemResource.Update();
                        }                    
                       
                       
                        BindData("Inprogress");
                    }
                   
                    else if (e.CommandName == "ViewItem")
                    {
                        GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                        lblId = (Label)row.FindControl("lblID");
                        lbllistname = (Label)row.FindControl("lblListName");
                        txtComments = (TextBox)row.FindControl("txtComments");

                        if (lbllistname.Text == "Service")
                        {                          
                            Response.Redirect(SPContext.Current.Web.Url + "/Lists/Service%20Request/Item/displayifs.aspx?List=cd22a145%2D1a55%2D45fe%2D9d34%2D338fae0b808b&ID=" + lblId.Text + "&Source=http%3A%2F%2Fsyncgdc2068%3A5002%2FLists%2FService%2520Request%2FAllItems%2Easpx&ContentTypeId=0x01004044E3E1408A6B4BA734CD344CB08108");                          
                        }                                            
                       


                    }
                }
            }

        }

SharePoint Interview Question


1. What is SharePoint? 
 Microsoft SharePoint is an enterprise collaboration and content management platform which enables users to connect each other and share the information across an organization. Indirectly this solves the problems in an organization to share the documents, security, business process, maintaining data etc. SharePoint 2010 has rich UI and plenty of features.

2. What is the Farm in SharePoint?
1. Farm is a collection of SharePoint servers having the same configuration database. 
2. Configuration DB stores all the required information to run the farm. 
3. Each farm is administered through a central administration 
4. There is only one configuration database per farm.

3. What is web Application in SharePoint?
1. In SharePoint Web Application is an IIS website. 
2. From Central Admin we can create the web application. Each web application is associated with one IIS web site. 
3. Once the web application is created, we can extend the web application in different zones. 
4. For each web application, content database is created.

4. What is a site collection in SharePoint?
1. A site collection is a set of web sites. 
2. Every site collection has top-level site, created when the site collection is created. 
3. There might be multiple site collections in web application and each site collection may have a multiple child sites.

5. What is web part?and type
Web Parts are the fundamental building blocks for Share Point user interface, and with them we can build and integrate many different types of applications. In share point also be create custom web part using .ascx control
steps create custom web part
1.create web part project copied .ascx control and build application. place .dll file in GAC .reset IIS.
2.go 12 hive _layout folder create folder past your .ascx control
3.go inetpub ->wwwroot->wss->open Your site ->web con fig->create safe control write assembly information of web part application
4.open sharepoint site ->site action-site editing->Galleries ->web part->new Add your web part.
follow few web part in WSS 3.0
 Content Editor Web Part ,Data View Web Part ,List View Web Part ,Image Web Part ,Members Web Part ,Page Viewer Web Part

6. What is Sandbox solution?
When user writing custom code then it is not trusted its failure causes on entire site. So the sandbox solution concept is used. In that case program is only written for particular site & solution is uploaded in the same site. The solution size limit is decided at the time of site creation & if size increases or code showing bad performance then it is easy to administrator to stop the working of solution.

7. What is the difference between Sandbox solution & farm solution?
We can create sandbox solution for particular site but not for the entire site collection or farm. It is not applicable for farm solution. There are some restrictions while creating the sandbox solution.

8. What is Ghosted and Unghosted Page in SharePoint?
A ghosted page is a page in SharePoint website which is not stored in the database instead it reference to a file which exists in the server’s file system. These reference files are common for all the website/site collection within that SharePoint server, i.e., if you modify a reference file then that change will reflect in all the websites/site collections within that SharePoint server automatically. So we can say these reference files are used as template.

The default master page of SharePoint “default.master” is a well known example of ghosted page. “default.master” page is located in the directory "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\Global". If you do some changes in the “default.master” then this change will automatically reflect in all the websites within that SharePoint server.

To create a new site in SharePoint, a site template is used. Site template contains description of all the pages, webparts within the pages, master page used, custom lists, etc. for the web site to be created. You can define a page ghostable in the “onet.xml” file of the site template.

Unghosted Page in SharePoint

All the pages in a SharePoint website which are stored in the content database are referred as unghosted pages. All the unghosted pages are specific to that SharePoint website only, i.e., changes done in an unghosted pages will not reflect in other websites within that SharePoint server.
If a new website is created with a site template which contains a page defined as “unghostable” in the “onet.xml”, then that page will be stored in the content database of new website created and will not reference to the page available in the site template folder.

If a ghosted page is modified in the SharePoint designer, it will become unghosted. For example if a master page is customized in SharePoint Designer, SharePoint stores a modified version of the master page in the content database and also it breaks the reference to the “default.master” file on the “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\Global“

 

 

9. What is the difference between Site Definition and Site template?

1. To create or use site definition you need server admin access, but site template can install from web UI by site owners. 
2. Site definition supports feature stapling, but for site template additional features must be activated in gallery.
 
3. Site definitions are stored in hard disk, but site templates are stored in content DB.
 
4. Site definition can provision multiple webs, but site templates for single web only.
 
5. Creating site definition is relatively complex then site template creation.


10.What is BDC and how it is differ from BCS?

BDC (Business Data Catalogue) is use to connect an external database and view it in share point. 
BCS (Business connectivity Services) is new in SharePoint2010. Using BDC one can only read from external Database, but using BCS one can read and write into the external Database.


11.What is Web Part life Cycle?
Web Part Life Cycle starts with, OnInit- to configure the webpart, 
OnLoad- to load add controls, CreateChildControls- It is use to create controls and set its property. 
LoadViewState- The view state of the web part is populated over here. 
OnPreRender- it is use to change the web part properties. 
RenterContents- it generate the output in html. 
OnUnLoad- to unload the web part, Dispose- to free the memory.

12.Explain the Share Point Architecture.?
Having 3 layers, like 3 tire architecture 
1. WFE <Front End Web Server>  2. Application Layer  3. Data base Layer 
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
1. WFE :- 
Here we have share point Installed. 
We have 12-hive structure & virtual drives. 
Here IIS web sites are hosted. 
Here servers are clustered on & are in synch. 

2. Application Lay er:- 
Share Point provides different services. 
This layer provides those services, like my site hosting, user profile & searching etc. 
One server can be dedicated to particular service depend upon the scalability. 

3. Data Base Layer :- 
Here we have SQL server installed. 
Here content DB is hosted. 
For moss 2007, it is SQL server 2005. For Share Point 2010, it is SQL server 2008. 
Here servers are clustered on & are in synch. 

* Every layer has load balancer for control the traffic

<!--[if !supportLists]-->13.How to deploy wsp ?
In Command prompt, navigate to the 12-hive bin folder, then write the command to add the solution i.e.
Stsadm -o addsolution -filename filelocation 

Then go to “central administration -> operations” under “global configuration” there is “solution management” click on that.

Then click on “wsp file name”, and then click on “deploy solution” for deploy it, for retrieve click on “retrieve solution”, for remove it click on “remove solution” after retrieve it.


<!--[if !supportLists]-->14.Client Object Model vs Server Object Model in SharePoint 2010 ?
Using Client Object Model we can access the data from the system where SharePoint server is not installed on the machine via Web Services, API , JavaScript etc.

Whereas In Server Object Model is like a Production Server Environment to access the data where share point server installed on the machine

15.Discuss the differences between Library vs List ?
The major differences between both are:
Library is used to store the document whereas Lists are the container of similar items in the form of rows and columns.
In Library you can create core document like Word, Excel, and PowerPoint. But in List You cannot create document, instead of that you can attach document in a particular List.

<!--[if !supportLists]-->16.Mention the types of authentications available for SharePoint 2010 ?
The types of authentications that are available for SharePoint 2010 are of 3 types.
They are:
1) Claims Authentication,  2) Windows Authentication,  3) Forms-based Authentication

<!--[if !supportLists]-->17.Explain the difference between Classic mode authentication and Claims-based authentication ?
Classic authentication will supports NT authentication types like Kerberos, NTLM, Basic, Digest, and anonymous.
Claims based authentication uses claims identities against a trusted identity provider.

<!--[if !supportLists]-->18.What is meant by User Profile service?
The User Profile Service will allows you for configuring and managing User profile properties, Audiences, Profile synchronization settings, organization browsing and management settings, and My Site settings.

<!--[if !supportLists]-->19.What is meant by Performance Point Services ?
The Performance Pint Services will allow the users to monitor and analyze a business by building dashboards, scorecards, and key performance indicators (KPIs).

<!--[if !supportLists]-->20.What is meant by Secure Store Service (SSS) ?
Secure Store Service is nothing but a secure database for storing credentials that are associated with application IDs.

<!--[if !supportLists]-->21.Mention some of the OOB features of SharePoint that aid with governance of an environment?
Some of the OOB features of SharePoint that aid with governance of an environment are discussed as folows:

1) Site templates – This feature is used for consistent branding, site structure, and layout which can enforce a set of customizations that are applied to a site definition.
2) Quotas – This will limits the amount of storage a site collection can use.
3) Locks - This feature will prevent users from either adding content to a site collection or using the site collection.
4) Web application permissions and policies – This feature is used for comprehensive security settings that apply to all users and groups for all site collections within a Web application.
5) Self-service site creation - This feature will enables the users to create their own site collections, thus must be incorporated into a governance scheme.

<!--[if !supportLists]-->22.What are event receivers or event Handlers in SharePoint ?
Event Receivers or Event handlers are created to handle the basic actions or events against an item,list\library, a web or a site.
There are two kinds of events in sharepoint. They are:
1) Synchronous Events: Like Itemadding (not added yet), Uploading (document not uploaded yet) etc.
2) Asynchronous Events: ItemAdded (after item is added), Uploaded(after a document is uploaded)

Events receivers can be written to override an event.
For e.g. ItemAdded event to change the name of an Item once it is added.

<!--[if !supportLists]-->23.What is meant by stsadm ?
It is a Command-line tool used for administration of Office SharePoint 2007 (or MOSS 2007) servers and sites. Basic operations like adding a solution or installing activating and feature is usually done by stsadm

<!--[if !supportLists]-->24.Where is stsadm located ?
The stsadm is located in the below given path.
C:\Program Files\Common Files\ shared\web server extensions\12\bin

<!--[if !supportLists]-->25.What are Site Columns ?
Site columns are pre-defined data columns which are re-used in various content types. A Content type is usually a collection of site columns.
For e.g. you can create a site column "Category" with a choice datatype along with the pre-defined values "It","Hr". This column then can be added to any content type in your list or library

<!--[if !supportLists]-->26.What is meant by a Site definition ?
A Site definition is a collection of Files. The files are such as ONET.XML which defines the Site template.
For e.g. Team Sites used to create a Site in SharePoit. All the out-of-box site Templates like Blog,Wiki,Team Site etc can be found in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\

<!--[if !supportLists]-->27.Why we use the properties.current.web instead of SPContext.Current.web in event receiver?
When we deploy project from Visual studio then we can use the SPContext.Current.web but when we use the powershell to activate or deactive the feature then we have to use properties.current.web beacuse there is no access of browser here.

<!--[if !supportLists]-->28.What is SharePoint Delegate Control?
a. With the help of delegate control, we can take any OOB control of SharePoint and replace with our custom control without any modification in the SharePoint page. So that new custom control overrides the existing one. 

b. So the delegate control provide one of the option to add control (either server control or user control) on a SharePoint page. 
c. This is one of the important features of SharePoint, introduced in WSS v3 and so in MOSS 2007.
d. For example : In master page SearchBox control is included as 
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" /> 
e. The above lines instantiate the delegate control object. 
f. This delegate control object uses features to locate the control which is specified in ControlId. So there must be the features (it includes feature at any scope) which creates and deploys the Small Search Input Box control.

<!--[if !supportLists]-->29.What are the Methods of Backup and Recovery in SharePoint 2010?
Microsoft SharePoint Server 2010 provides a broad range of levels for performing backups, including the entire farm, farm configuration information, site collections, sub sites or lists.

SharePoint Server 2010 uses two different tools to configure backup and recovery.
1. Central Administration: Central Administration provides a user interface where SharePoint Administrators will be prompted via menu structures to select the information that needs to be backed up.
2. Windows PowerShell: Windows PowerShell is a command line tool that provides SharePoint administrators a way to perform backup and recovery with additional options such as file compression or working with SQL snapshots.

Listed below are a few of the benefits available when working with Windows PowerShell

Windows PowerShell scripts can be developed and scheduled (with Windows Task Scheduler), whereas Central Administration is used for single-use backups and restores.

Windows PowerShell has the advantage of running against SQL snapshots instead of the production database. One of the parameters of the Windows PowerShell command will cause a SQL snapshot to be generated, and then Windows PowerShell will run the action against the snapshot instead of the production database. This will reduce the resource impact of the backup operation on the production environment.

With Windows PowerShell, SharePoint administrators will have more granular control of options for the backup or restore.

<!--[if !supportLists]-->30.What is a workflow?
Workflow is the definition, execution and automation of business processes where tasks, information or documents are passed from one participant to another for action, according to a set of procedural rules.
Organizations use workflows to coordinate tasks between people and synchronize data between systems, with the ultimate goal of improving organizational efficiency, responsiveness and profitability.
Workflows automate the flow of employee tasks and activities, reducing the time the process took to complete as well as potential errors caused by human interaction.

<!--[if !supportLists]-->31.What is the difference between a Site Definition and a Site Template?
Site Definitions are stored on the hard drive of the SharePoint front end servers. They are used by the SharePoint application to generate the sites users can create. Site Templates are created by users as a copy of a site they have configured and modified so that they do not have to recreate lists, libraries, views and columns every time they need a new instance of a site.

<!--[if !supportLists]-->32.What are content types? 
A content type is a flexible and reusable WSS type definition (or we can a template) that defines the columns and behavior for an item in a list or a document in a document library. For example, you can create a content type for a leave approval document with a unique set of columns, an event handler, and its own document template and attach it with a document library/libraries.Can a content type have receivers associated with it?
Yes, a content type can have an event receiver associated with it, either inheriting from the SPListEventReciever base class for list level events, or inheriting from the SPItemEventReciever base class. Whenever the content type is instantiated, it will be subject to the event receivers that are associated with it.

<!--[if !supportLists]-->33.What is a document library in SharePoint? 
A document library in SharePoint is where you upload your main or core documents. Document Library is consist of a row and column view with links to the documents, When the document is updated and so is the link is created on your site. You can also track metadata of your documents. Meta data in SharePoint is consisting of document properties.

<!--[if !supportLists]-->34.What is the difference between a document library and a form library in SharePoint? 
Document libraries in SharePoint consist of your main/core documents. For example a word document, excel PowerPoint, Visio, pdf, csv, notepad etc. Form libraries consist of XML forms.

<!--[if !supportLists]-->35.What is a template in SharePoint? 
A template is a pre-defined set of functions or settings that can be used over time. There are many templates within SharePoint software itself, Site Templates, Document Templates, Document Library and List Templates.
You can download More SharePoint templates from Microsoft site and the link is

<!--[if !supportLists]-->36.What security levels are assigned to users for a SharePoint Website? 
Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary.
* Reader - Has read-only access to the Web site.
* Contributor - Can add content to existing document libraries and lists.
* Web Designer - Can create lists and document libraries and customize pages in the Web site.
* Administrator - Has full control of the Web site.

<!--[if !supportLists]-->37.How do I make my site non-restricted (Available for anonymous users without Authentication) in SharePoint? 
If you want your site to have anonymous access enabled (i.e., you want to treat it like any site on the Internet that does not ask you to provide a user name and password to see the content of the site),
If you want to make your SharePoint website available on Internet and anybody can use it than you can follow below steps:
1) Log-in as an administrator
2) Click on site settings
3) Click on Go to Site Administration
4) Click on Manage anonymous access
5) Choose one of the three conditions on what Anonymous users can access:** Entire Web site** Lists and libraries** Nothing Default condition is nothing; your site has restricted access.
The default conditions allow you to create a secure site for your Web site.

<!--[if !supportLists]-->38.What is a Field Control?
Field controls are simple ASP.NET 2.0 server controls that provide the basic field functionality of SharePoint. They provide basic general functionality such as displaying or editing list data as it appears on SharePoint list pages.

<!--[if !supportLists]-->39.Which are default master pages in Sharepoint 2010?
1. v4.master - This is default master page.
2. default.master - this is used to support the 2007 user interface
3. minimal.master,4. simple.master- it is used for accessdenied.aspx, confirmation.aspx, error.aspx, login.aspx, reqacc.aspx, signout.aspx & webdeleted.aspx pages.

<!--[if !supportLists]-->40.What is a SharePoint Feature? What files are used to define a feature? 
A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances, scope of which are defined as
1. Farm level 2. Web Application level 3. Site level 4. Web level
Features have their own receiver architecture, which allow you to trap events such as when a feature is Installing, Uninstalling, Activated, or Deactivated.

The element types that can be defined by a feature include
Menu commands, link commands, page templates, page instances, list definitions, list instances,
Event handlers and workflows.

The two files that are used to define a feature are the feature.xml and manifest file(elements.xml). The feature XML file defines the actual feature and will make SharePoint aware of the installed feature. The manifest file contains details about the feature such as functionality.

<!--[if !supportLists]-->41.What are features of SharePoint 2010?
Features are:
Document Collaboration, Enterprise Search FAST Search, New Enhance Web Part
Silver Light web part, Business Connectivity Services, Social Media Investments
Large lists, Enhanced collaboration features, Visio Services, Usage reporting and logging
Better Network Differencing & SharePoint Offline in SharePoint Workspace
High Availability/ Disaster Recovery Innovation
Admin Insights through the Logging & Usage database, and dev dashboard
     Service Applications,      SharePoint Designer Enhancements like portable workflows, and       granular delegation, Sandbox Solutions

<!--[if !supportLists]-->42.What is the difference between Classic mode authentication and Claims-based authentication? 
As the name implies, classic authentication supports NT authentication types like Kerberos, NTLM, Basic, Digest, and anonymous. Claims based authentication uses claims identities against a against a trusted identity provider.

<!--[if !supportLists]-->43.What are content databases? 
A content database can hold all the content for one or more site collections.


<!--[if !supportLists]-->44.What is a site collection? 
A site collection contains a top-level website and can contain one or more sub-sites web sites that have the same/unique Permissions which can be controlled by a site collection administrator.

<!--[if !supportLists]-->45.What is an application pool? 
A group of one or more URLs that are served by a particular worker process or set of worker processes

<!--[if !supportLists]-->46.What are Web Applications in SharePoint?
An IIS Web site created and used by SharePoint 2010.

<!--[if !supportLists]-->47.What is Content Deployment? 
Content deployment enables you to copy content from a source site collection to a destination site collection.

<!--[if !supportLists]-->48.What is a search scope? 
A search scope defines a subset of information in the search index. Users can select a search scope when performing a search

<!--[if !supportLists]-->49.What are the Enterprise features of MOSS 2007? 
* User Interface (UI) and navigation enhancements
* Document management enhancements
* The new Workflow engine , * Office 2007 Integration ,* New Web Parts
* New Site-type templates, * Enhancements to List technology
* Web Content Management, * Business Data Catalog , * Search enhancements
* Report Center, * Records Management, * Business Intelligence and Excel Server
* Forms Server and InfoPath, * The "Features" feature
* Alternate authentication providers and Forms-based authentication

<!--[if !supportLists]-->50.What Has Changed with SSP in SharePoint 2010 ?
 In SharePoint 2010 Shared Service Providers (SSP's) are replaced by Service Applications. Services are no longer combined into a SSP. They are running independent as a service application. The service application architecture is now also built into  SharePoint Foundation 2010, in contrast to the Shared Services Provider (SSP) architecture that was only part of Office SharePoint Server 2007.
A key benefit here is that all services are installed by default and there is no SSP setup
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->51.What is a declarative workflow? Can non-authenticated users participate in workflows?
Workflow created by using Microsoft SharePoint Designer 2010, the default setting enables deployment of declarative workflows. Yes, however you do not give non-authorized users access to the site. The e-mail message and attachments sent from notifications might contain sensitive information
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->52.What is Web Application in SharePoint?
1. In SharePoint Web Application is a IIS website.
2. From Central Admin we can create the web application. Each web application is associated with one IIS web site.
3. Once the web application is created, we can extend the web application in different zones.
4. For each web application, content database is created.

<!--[if !supportLists]-->53.What is an application pool? Why are application pools important .
In Internet Information Services (IIS), a group of one or more URLs served by a worker process.
They are important as they provide a way for multiple sites to run on the same server but still have their own worker processes and identity
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->54.What is ACL ?
A list of users or groups and their security permissions. Identifies who can update, modify, or delete an object on a computer or resource on the network.

<!--[if !supportLists]-->55.What is the difference between Classic mode authentication and Claims-based authentication?
As the name implies, classic authentication supports NT authentication types like Kerberos, NTLM, Basic, Digest, and anonymous. Claims based authentication uses claims identities against a against a trusted identity provider. 

<!--[if !supportLists]-->56.When would you use claims, and when would you use classic?
Classic is more commonly seen in upgraded 2007 environments whereas claims are the recommended path for new deployments.

<!--[if !supportLists]-->57.What are some of the tools that can be used when backing up a SharePoint 2010 environment?
SharePoint farm backup and recovery, SQL Server, System Center Data Protection Manager
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->58.What Microsoft tool can be used for incremental backups?
System Center Data Protection Manager

<!--[if !supportLists]-->59.What is Managed Metadata?
Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items.

<!--[if !supportLists]-->60.How do Terms and Term Sets relate to Managed Metadata?
Managed metadata is a way of referring to the fact that terms and term sets can be created and managed independently from the columns themselves.

<!--[if !supportLists]-->61.Are there different types of Term Sets?
There are Local Term Sets and Global Term Sets, one created within the context of a site collection and the other created outside the context of a site collection, respectively.

<!--[if !supportLists]-->62.How are Managed Metadata, and the related Term technology used?
Through the UI, the most common use is through the managed metadata list column which allows you to specify the term set to use. It also related to searching and enhancing the user search experience.

<!--[if !supportLists]-->63.What is a search scope?
A search scope defines a subset of information in the search index. Users can select a search scope when performing a search.

<!--[if !supportLists]-->64.What is a federated location with SharePoint search?
Federated locations provide information that exists outside of your internal network to your end-users.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->65.What is query logging in SharePoint 2010?
Collects information about user search queries and search results that users select on their computers to improve the relevancy of search results and to improve query suggestions.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
<!--[if !supportLists]-->66.What authentication type does the SharePoint crawler use?
The crawl component requires access to content using NTLM authentication.

<!--[if !supportLists]-->67.What is the Secure Store Service (SSS)?
A secure database for storing credentials that is associated with application IDs

<!--[if !supportLists]-->68.What is Content Deployment?
Content deployment enables you to copy content from a source site collection to a destination site collection.

<!--[if !supportLists]-->69.What is the difference between SQL clustering and mirroring?
Clustering provides a fail over scenario whereby one or more nodes can be swapped as active depending on whether a node goes down.
In mirroring, transactions are sent directly from a principal database and server to a mirror database to establish essentially a replica of the database.

<!--[if !supportLists]-->70.What is CAML?
CAML is the collaborative application markup language. This is the XML-based language used to customize and to develop the SharePoint based sites and features.

<!--[if !supportLists]-->71.How do you configure outgoing E-mail?
It is recommended that you set up a Local SMTP Virtual Server on your share point box and configure it to relay to your normal domain. 

This will not only provide a natural queuing mechanism which would be highly preferred, but it will also provide you with what you need to set up incoming email as well as outgoing. 

(DW) 

More details on this ... 

If you are looking to use your corporate email to read outbound email--you'll need to go to the SMTP Virtual server and set up a new domain in it. Click on domains and make a new remote domain. Type in the name of your corporate email (for me it would be Microsoft.com). 

Once it's made, get the properties on it and configure the smart host to be the name of your actual mail server (exchange or whatever). This will cause the SMTP Virtual Server to relay mail addressed to your remote domain to your corporate email server. 

If that server only accepts mail from authenticated sources, you'll have to configure the outbound security on the remote domain as well as the smart host. 

(DW) 

Note to the usual need to make sure that Port 25 is not blocked by an A-V software (McAfee being the typical culprit)

<!--[if !supportLists]-->72.How to Remove the Banner from InfoPath Form 2007?
Using Stsadm setformserviceproperty we can remove the banner from InfoPath form 2007.
Ex: stsadm.exe -o setformserviceproperty -pn allow branding -pv false


<!--[if !supportLists]-->73.How to Synchronize the User Profiles with Active Directory in MOSS 2007?
1. Log into the Shared Services Administration site 
2. Click on User Profiles and Properties, 
3. Click on Configure Profile Import 
4. Under "Source" select the domain you wish to import from 
5. Under "Default Access Account" select either the default content access account or specify account details – this account must have permission to access the Active Directory users (default) OU container 
6. Click OK 
7. Now select either a Full or Incremental import, a Full import will ensure that users deleted from Active Directory are removed from the profile database 
8. Once the import has finished you can select "View Import Log" to reveal details about the import

<!--[if !supportLists]-->74.Give the list of sites that are available in SharePoint?
The sites that are available in SharePoint are given below: 
1) Team Site , 2) Blank Site, 3) Document Workspace, 4) Blog, 5) Group Work Site,6) Visio Process Repository, 7) Basic Meeting Workspace, 8) Blank Meeting Workspace ,9) Decision Meeting Workspace ,10) Social Meeting Workspace , 11) Multipage Meeting Workspace , 12) Assets Web Database ,13) Charitable Contributions Web Database, 14) Contacts Web Database, 15) Issues Web Database ,16) Projects Web Database, 17) Document Center ,  18) Records Center ,19) Business Intelligence Center , 20) My Site Host, 21) Personalization Site, 22) Enterprise Search Center, 23) Basic Search Center ,24) FAST Search Center , 25) Enterprise Wiki, 26) Publishing Portal, 27) Publishing Site

<!--[if !supportLists]-->75.What has changed with 12 hive in SharePoint?
In 12 hive structure, there are 3 New Folders which are added in. 
they are: 
1) UserCode – This folder is used for the files to support sandboxed solutions.
2) WebClients – This folder is used for the client Object Model. 
3) WebServices – This folder is used for the .svc files

<!--[if !supportLists]-->76.Explain about picture libraries?
Picture libraries will allow you to access a photo album and view it as a slide show or thumbnails or a film strip. You can have separate folder for each event, category, etc.

<!--[if !supportLists]-->77.Discuss about the security levels which are assigned to users?
The administrator will assign the Security level who is adding the user. There are four levels by default which are discussed as follows: 

1) Reader - In this level, the user will have read-only access to the Web site. 
2) Contributor - The user can add content to existing document libraries and lists. 
3) Web Designer - The user can create lists and document libraries and customize pages in the Web site. 
4) Administrator - The user will have the full control of the Web site.

<!--[if !supportLists]-->78.Explain about Solutions in SharePoint?
Solutions are nothing but the container packages for Features. Solution is a cabinet (.cab) file with extension .wsp which contains various components needed to be deployed (features, web parts, custom forms etc) along with files that describe some important metadata about those Components. 
Once a Solution is installed on a server in the farm, you can deploy it to any web application from your Solution Management.

<!--[if !supportLists]-->79.What is meant by a SharePoint Theme?
A Theme is a group of files (CSS, images) that allow you to define the appearance (look and feel) of content pages in SharePoint. A Theme defines the design of various components. 
For e.g. Content Page background-color, button color, web part title color etc. to give a different look and feel to your site.

<!--[if !supportLists]-->80.What is the command to take backup and restore for SharePoint site?
The commands to take backup and restore for SharePoint site are given as follows:
Backup command:
stsadm -o backup -url http://moss:4002/ -filename c:\bkupsite.bak
To restore :
stsadm -o restore -url http://moss:4004/ -filename c:\bkupsite.bak




<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->



<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

.