Archive for the ‘MOSS’ Category
Create event handler for specific list
Introduction: In this article I will describe that how to create event handler for specific list using sharepoint feature. Here I will take example of Item Added & deleting action event. On added event, we will add item description and on deleting event, we will not allow to delete.
April 29, 2012
·
Infoyen ·
No Comments
Tags: Create an Event Handler, Deploying Item Event Receiver, MOSS, SharePoint · Posted in: Event Handler, MOSS, SharePoint
Feature receiver in sharepoint
In this article I will describe that how to write custom feature receiver. This is very helpful when we are required to perform some action while activating feature. To explain this functionality In this I will modify site title on feature activation and remove site title on feature deactivation.
April 22, 2012
·
Infoyen ·
No Comments
Tags: Add Feature Event Receivers, MOSS, SharePoint, SharePoint Feature Receivers, SPFeatureReceiver · Posted in: MOSS, SharePoint
Custom Action Menu in sharepoint
In this article I will describe that how to add custom link on site action menu, List Action menu, Site Setting page, Document library toolbar new menu, Document library action menu, per item drop down.
April 22, 2012
·
Infoyen ·
One Comment
Tags: Adding Link to Document Library Toolbar Actions Menu, Adding Link to Document Library Toolbar New Menu, Adding Link to Per Item Dropdown, Adding Link to Site Action menu, Adding Link to Site Settings, MOSS, SharePoint · Posted in: MOSS, SharePoint
Feature in SharePoint
Features Microsoft Windows SharePoint Services features are collections of logically related items and operations that can be added to and used repeatedly across site definitions. Advantage: Features reduce versioning and inconsistency issues that can arise among front-end Web servers. Feature activating or deactivating functionality in the course of a SharePoint deployment easier.
April 22, 2012
·
Infoyen ·
No Comments
Tags: Custom Feature in sharepoint, feature sope, MOSS, SharePoint, SharePoint Feature · Posted in: MOSS, SharePoint
Delete selected Items from sharepoint list programmatically
Introduction There are few ways to delete item from sharepoint list, however I like the way to perform ProcessBatchData method (approach 1 in this article) which seems faster to me. Here I am going to explain about 2 approaches in which we will use SPListItem.Delete or SPWeb.ProcessBatchData method. My example will delete items from list if […]
April 18, 2012
·
Infoyen ·
8 Comments
Tags: Delete a List Item Programmatically, delete selected items in SPList, Deleting List Items, Deleting List Items programmatically, MOSS, SharePoint, SPListItem.Delete, SPWeb.ProcessBatchData · Posted in: List, MOSS
Get web collection count for read permission
Issue:- For one of requirement; I had to get subwebs and lists of current site for current user. To do so I just used “SPWeb.Web.Count” and it works well for admin. But for reader it throws access denied exception. If we see in debug mode then error detail would be like below:- threw an exception […]
April 16, 2012
·
Infoyen ·
No Comments
Tags: access denied exception, MOSS, RunWithElevatedPrivileges, SharePoint, SPWeb.Webs.Count, User With read Permission · Posted in: MOSS, Security, SharePoint, Tips & Tricks
Create and deploy user control in sharepoint using feature
Introduction In this article I will describe that How to create and deploy user control in sharepoint using feature. Create User Control Brief: We will create a very simple ASP.NET user control (.ascx) which will just display “Hello World”. To load this control in sharepoint we will create a generic webpart which can load any […]
April 11, 2012
·
Infoyen ·
2 Comments
Tags: Adding and Deploying a User Control in a WebPart with VSeWSS, Deploy a User Control in SharePoint, Deploying user controls in MOSS 2007, Developing and Using Web User Controls as WebParts, Developing Web Part using Web User Control., generic webpart to load user control, MOSS, SharePoint, sharepoint web part development, The best practice to deploy user control to sharepoint · Posted in: MOSS, SharePoint, WebPart
Fully Featured WebPart in SharePoint
Introduction In this article I am going to explain you that how to create web part properties which is also called as fully featured webpart. Web Part Property: The first thing that you can do to enhance your Web Parts is add properties to your Web Part classes. This allows you to provide either Web […]
April 9, 2012
·
Infoyen ·
No Comments
Tags: Create Custom Web Part in SharePoint, Creating a SharePoint 2007 Web Part with Custom Properties, Custom Properties in a SharePoint web part, Custom Web Part Properties, Developing and Deploying Custom Web Parts for SharePoint, Developing Sharepoint 2007 Custom Web Parts, How to add Custom Properties to Custom Web Parts, How to use Web Part Custom Properties in SharePoint, MOSS, SharePoint, sharepoint web part development, SharePoint: Creating Custom Enterprise Search Web Parts, Web part custom property - dropdown list, Write Custom WebParts for SharePoint 2007 · Posted in: MOSS, SharePoint, WebPart
Create WebPart in sharepoint
Introduction In this article I am going to explain you that what is web part in share point and how to create it. Definition: A Web Part, also called a Web Widget, is an ASP.NET 2.0 server control which is added to a Web Part Zone on Web Part Pages by users at run time. […]
April 1, 2012
·
Infoyen ·
One Comment
Tags: Create Custom Web Part in SharePoint, Developing and Deploying Custom Web Parts for SharePoint, Developing Sharepoint 2007 Custom Web Parts, MOSS, SharePoint, sharepoint web part development, SharePoint: Creating Custom Enterprise Search Web Parts, Write Custom WebParts for SharePoint 2007 · Posted in: MOSS, SharePoint, WebPart
User Profiles in SharePoint Object Model
Introduction In this article I am going to explain you that How to use User Profiles and profile properties in Sharepoint Object model. In SharePoint 2007, a userid is uniquely identified by his/her username. The username is Tied to the membership provider that the site is configured to authenticate against. A user can also have […]
March 28, 2012
·
Infoyen ·
8 Comments
Tags: Accessing User Profile properties, Create/Manage User Profile Properties, Get SharePoint User Profile of Specific User, Getting User Profile Properties from SharePoint SSP, How to add custom user profile properties, How to get UserProfile information programmatically, How to: Retrieve User Profile Properties, MOSS, Programmatically create User Profile, Programmatically editing the user profile, Programmatically Reading User Profile, Read/writing to user profile programmatically, Set User Profile properties programmatically, SharePoint, userprofilemanager.getuserprofile · Posted in: MOSS, Security, SharePoint