DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   
Total Count : 23
Resources Publish New Article  
What is difference between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()
Ashok Nalam
To refer SPWeb object sometimes we use SPContext.Current.Web or SPContext.Current.Site.OpenWeb(). Here we will see What are differences between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()
  1. Creates a new instance of the SPWeb object, and we are responsible to dispose after using it.
  2. OpenWeb() with out sending parameters opens root web of current site collection. If OpenWeb() with parameters opens specific web site.
  3. Expensive call - It cost more resources than reusing an existing one.
SPContext.Current.Web :
  1. Gives you access to the current instance of SPWeb, and you must not dispose it
  2. Gives current Subsite if you are at web other than root web.
By: Ashok Nalam | 01 Oct 2013 | Sharepoint | Views: 9517 | Comments: 0 | Tags:.NET  security 
What is Site Columns in SharePoint
Ashok Nalam
Site Columns are re-usable data type model which can be used in many different content types and list definitions across multiple SharePoint sites. Site Columns shares metadata information across multiple list and libraries. If we define Site Column at root level site of site collection then it can be used across all sub sites in same site collection.

Inbuilt SharePoint site creates many site columns when we create a new site. We can find them at Site Settings -> Web Designer Galleries -> Site columns. We can create our own Site Column using Create link button from Site Columns page. Each Site Column will be mapped to a Group and Type.
By: Ashok Nalam | 24 Jun 2013 | Sharepoint | Views: 13172 | Comments: 2 | Tags:.NET 
What are the view formats for SharePoint Custom List template
Ashok Nalam
When we create a Custom List in SharePoint site, we need to map the list to View. By default when we create List, it will be mapped to "All Items" standard view. But we can change the view for the list. 

Each view is created from View Type and below are the available view types
  1. Standard View  - View data on a Web page. You can choose from a list of display styles.
  2. Calendar View -  View data as a daily, weekly, or monthly calendar.
  3. Datasheet View  - View data in an editable spreadsheet format that is convenient for bulk editing and quick customization. 
  4. Gantt View  - View list items in a Gantt chart to see a graphical representation of how a team's tasks relate over time. 
  5. Custom View in SharePoint Designer  - Start SharePoint Designer to create a new view for this list with capabilities such as conditional formatting. 
In order to see the available view types, Go to Custom List Settings -> Create View -> View Type.
By: Ashok Nalam | 20 Jun 2013 | Sharepoint | Views: 5593 | Comments: 2 | Tags:.NET  list 
What are the default columns added to SharePoint Custom List template
Ashok Nalam
When we create a Custom List in SharePoint site, By default 5 columns are added to custom list which are
  1. Title (Single line of text) - Mandatory field that defines a title for each list item.
  2. Created (Date and Time) -  When the user has created the current item.
  3. Modified (Date and Time) - When the last user has modified the current item.
  4. Created By (Person or Group) - User who created the current item.
  5. Modified By (Person or Group) - User who last modified the current item.
We can modify the column properties by clicking on Column Name from List Settings.
By: Ashok Nalam | 20 Jun 2013 | Sharepoint | Views: 8350 | Comments: 2 | Tags:.NET  list 
What is custom list template in sharepoint site
Ashok Nalam
Inbuilt SharePoint provides some predefined list of templates like Announcements,Calendar,Picture Library,Links...etc. If none of templates are meeting you requirement, you can create your own custom list instance and define columns/views for the list. This list is called Custom List.

In-order to create new custom list, Go to Site Contents -> Add an App -> Select Custom List -> Provide Name for Your Custom list.After creating list, add columns and views to it.
Create Column/View for List: Open created Custom List -> List Settings -> Create Column/View

Note: By default every Custom List will have 5 columns (Title, Modified, Created, Created By and Modified By).
By: Ashok Nalam | 20 Jun 2013 | Sharepoint | Views: 4839 | Comments: 2 | Tags:.NET  list 
What are the various default permission levels in SharePoint site
Ashok Nalam
SharePoint site has different permission levels for the SharePoint Groups. When you create SharePoint site, you can observe the below permissions as default. 

Full Control - Has full control.
Design - Can view, add, update, delete, approve, and customize.
Edit - Can add, edit and delete lists; can view, add, update and delete list items and documents.
Contribute - Can view, add, update, and delete list items and documents.
Read - Can view pages and list items and download documents.
Limited Access - Can view specific lists, document libraries, list items, folders, or documents when given permissions.
Approve - Can edit and approve pages, list items, and documents.
Manage Hierarchy - Can create sites and edit pages, list items, and documents.
Restricted Read - Can view pages and documents, but cannot view historical versions or user permissions.
Restricted Interfaces for Translation - Can open lists and folders, and use remote interfaces.

We can create our own set of permissions also. In order to create new permission, go to site settings -> Users and Permissions -> Site permissions -> Permission Levels(Display list of permissions avalible on site) ->  Add a Permission Level
By: Ashok Nalam | 19 Jun 2013 | Sharepoint | Views: 13280 | Comments: 2 | Tags:.NET  groups  security 
What is site template in sharepoint
Ashok Nalam
Site Template is a pre-defined set of configuration, layout, and content files that define a site model for an SharePoint application. In built SharePoint has shipped with the set of site templates or we can create our own site templates. 

Each site collection site is associated with a site template. While creating a new site collection for an web application from Central Admin, we need to select a site template from Template Selection section.

Once we crate site collection, share point stores some of the files in the file system of front-end webs servers and some content in back-end databases. When we request for a page from browser, SharePoint engine will decide from where it needs to pick the data either file system or content database.

Sample Site Templates:
Collaboration - Team Site
Collaboration - Blog
Collaboration - Coommunity Site
Enterprise - Document Center
Publishing - Publishing Portal
Publishing - Enterprise Wiki
By: Ashok Nalam | 19 Jun 2013 | Sharepoint | Views: 7382 | Comments: 0 | Tags:.NET 
What is Service Applications in SharePoint
Ashok Nalam
Service Applications(SA) are software services which run in a SharePoint farm. These are very useful to share information, resources and capabilities across multiple sites/applications/servers in the same share point farm or even across farms.

Service applications are introduced from SharePoint 2010. Advantage with the Service Applications are salable and extensible.

Sample Service Applications:
Access Services
User Profile Service
User Profile Synchronization Service
SharePoint Server Search

Location of services : Central Administration -> System Settings -> Manage services on server
By: Ashok Nalam | 19 Jun 2013 | Sharepoint | Views: 5044 | Comments: 0 | Tags:.NET 
What is content database in SharePoint
Ashok Nalam
A content database is a database file that stores content for one or more site collections for SharePoint web application. The content can be pages,files,documents,images and much more. So if the Site Collection has more number of SharePoint sites, the content database size grows rapidly.

One SharePoint web application can have more than one content database mapped to it and the max limit is 300 ContentDB's per Web Application. If you want to add more content databases to web application, Go to Central Admin -> Application Management -> Manage Content Databases -> select web application -> Add a content database.

Maximum Content database size is 200 GB in general usage scenarios.
By: Ashok Nalam | 19 Jun 2013 | Sharepoint | Views: 30292 | Comments: 1 | Tags:.NET  database 
How to Remove User from SharePoint Group programmatically
Ashok Nalam
Snippet covers how to delete SharePoint user from SharePoint group programmatically.
By: Ashok Nalam | 28 May 2013 | Sharepoint | Views: 11216 | Comments: 0 | Tags:delete  groups  remove  user 
SharePoint Get all userprofiles with GetUserProfile method - Performance issue for bulk users
Ashok Nalam
The article covers the performance issue while fetching bulk user profiles from SharePoint using GetUserProfile method and alternative solution for it.
By: Ashok Nalam | 27 May 2013 | Sharepoint | Views: 10399 | Comments: 0 | Tags:performance  user  user profile 
SharePoint UserProfile image asking for credentials again
Ashok Nalam
Sometimes we need to show user profile image(to left menu or list of users profiles to grid) from SharePoint UserProfiles. While fetching user profile images, we faced an issue like site was asking for user credentials again even user logged into SharePoint site. In this article we will see the resolution for the issue.
By: Ashok Nalam | 23 May 2013 | Sharepoint | Views: 11155 | Comments: 0 | Tags:error  image  user  user profile 
Programmatically remove SharePoint group from the site
Ashok Nalam
snippet covers how to remove SharePoint group from site.
By: Ashok Nalam | 21 May 2013 | Sharepoint | Views: 8868 | Comments: 0 | Tags:.NET  groups 
How to Add User to SharePoint Group programmatically
Ashok Nalam
In this snippet we will see how to add an user to SharePoint group programmatically.
By: Ashok Nalam | 21 May 2013 | Sharepoint | Views: 12194 | Comments: 0 | Tags:groups  user 
Check whether User exists in SharePoint Group or not
Ashok Nalam
In this snippet we will see how to check whether the user belongs to a SharePoint group or not
By: Ashok Nalam | 21 May 2013 | Sharepoint | Views: 10256 | Comments: 0 | Tags:.NET  groups 
SharePoint AspMenu control set href location to new window/tab using siteMapNode
Ashok Nalam
By: Ashok Nalam | 01 May 2013 | Sharepoint | Views: 22143 | Comments: 0 | Tags:ASP.NET  control  menu  sitemap 
What are the deployment models for Apps in SharePoint
Ashok Nalam
The deployment models for Apps in SharePoint are
  1. SharePoint-hosted - App and all resources will be hosted in your SharePoint farm. Used for light weight  smaller applications using HTML,Java Script and Client object model. Here you do not need to write server-side code. scope is site collection level.
  2. Autohosted - App is hosted in cloud. Used for light weight applications but the code is deployed at windows azure using cloud. scope is at site level.
  3. Provider-hosted - App and all resources are hosted on separate server. Code does not exists on SharePoint but will be in other domain which can be windows azure, IIS or even PHP app from your domain server. 
No matter where you host your app, it should target to support and consumable in SharePoint Apps.
By: Ashok Nalam | 29 Apr 2013 | Sharepoint | Views: 4306 | Comments: 0 | Tags:deployment 
SP.UI.$create_DialogOptions is not a function issue in visual webpart
Ashok Nalam
By: Ashok Nalam | 16 Apr 2013 | Sharepoint | Views: 186444 | Comments: 0 | Tags:error 
Enable or disable custom ribbon button in SharePoint
Ashok Nalam
The snippet shows how to enable or disable custom ribbon button in SharePoint.
By: Ashok Nalam | 26 Mar 2013 | Sharepoint | Views: 13550 | Comments: 0 | Tags:button 
Get SharePoint Site template names using Get-SPWebTemplate command
Ashok Nalam
The article provides information about Get-SPWebTemplate command and how to get list of templates available in SharePoint.
By: Ashok Nalam | 26 Mar 2013 | Sharepoint | Views: 24769 | Comments: 0 | Tags:commands  powershell 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys