Search This Blog

Total Pageviews

Tuesday, July 19, 2011

set the date format of the SharePoint DateTimeControl to DD/MM/YYYY

<SharePoint:DateTimeControl ID="dtReviseddate" DateOnly="true"  runat="server" UseTimeZoneAdjustment="false" LocaleId="2057 " />

LocaleId reference details
http://msdn.microsoft.com/en-us/goglobal/bb895996.aspx

Sunday, July 17, 2011

Globally Reusable Workflow in SharePoint 2010

Workflow
http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=18
http://www.codeproject.com/KB/sharepoint/ReusableWFsSharePoint2010.aspx


Video: Publish globally reusable workflows in SharePoint Designer 2010



Globally Reusable Workflow in SharePoint 2010

http://www.codeproject.com/KB/sharepoint/ReusableWFsSharePoint2010.aspxWorkflow

http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=18


Video: Publish globally reusable workflows in SharePoint Designer 2010

Coding Standards

Class & Method Declaration Standards:

Describes the role of the common type system and the Common Language Specification in class library development.
Describes the guidelines for naming types in class libraries.
Describes the guidelines for using properties, events, methods, constructors, fields, and parameters in class libraries.
Describes the guidelines for using classes, value types, delegates, attributes, and nested types in class libraries.
Describes the guidelines for exposing class library types to COM.
Describes the guidelines for raising and handling errors in class libraries.
Describes the guidelines for using arrays in class libraries and how to decide whether to use an array vs. a collection.
Describes the guidelines for implementing operator overloading in base class libraries.
Describes the guidelines for implementing the Equals method and the equality operator (==) in class libraries.
Describes the guidelines for casting types in class libraries.
Describes how to implement design patterns for Finalize and Dispose methods, the Equals method, callback functions, and time-outs.
Describes the precautions to take when writing highly trusted class library code, and how to help protect resources with permissions.
Describes the guidelines for implementing threading in class libraries.
Describes the guidelines for implementing asynchronous programming in class libraries and provides an asynchronous design pattern.


Saturday, July 16, 2011

Get SharePoint Workspace Url using object model

 public override void ItemUpdated(SPItemEventProperties properties)
       {
           base.ItemUpdated(properties);
           bool hasWorkspace = Convert.ToBoolean(properties.ListItem["WorkspaceLink"]);
           if (hasWorkspace)
           {
               string workspace = properties.ListItem["Workspace"].ToString();
           }
       }

Friday, July 15, 2011

Powershell Commands Used for Production Deployment

PowerShell Commands

Site Backup:

backup-spsite http://serverurl -path d:\temp\filepath.bak

Site Restore :
restore-spsite http://igrid101:8888 -path d:\temp\neo1800site.bak -force

Add WSP Solution :

Add-SPSolution -LiteralPath c:\Solutionname.wsp

Deploy the Wsp Solution :

Install-SPSolution -Identity contoso_solution.wsp -GACDeployment

Thursday, July 14, 2011

Changing the Welcome menu style on SharePoint 2010

.ms-welcomeMenu {
   padding:2px 5px 3px;
   margin:0px 3px;
   font-size:1em;
   font-family:Verdana,sans-serif;
   border:0px solid transparent;
   display:inline-block;
}
.ms-welcomeMenu a:link {
   color:#ffffff;
}
.ms-welcomeMenu a:hover {
   text-decoration:none !important;
   background-color:#c1c1c1;
}
.ms-welcomeMenu.ms-SpLinkButtonActive {
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */
/* [RecolorImage(themeColor:"Dark2-Lightest",includeRectangle:{x:0,y:489,width:1,height:11})] */
  /* background: url(../img/backgrounds/bg-sprite-tabbar.png) 100% 0 no-repeat;*/
/* [ReplaceColor(themeColor:"Dark2",themeShade:"0.8")] */
  background-color:#c1c1c1;
}
.ms-welcomeMenu.ms-SpLinkButtonActive a:link {
/* [ReplaceColor(themeColor:"Light1",themeTint:"0.9")] */
   color:#ffffff;
}