Posts

Custom Date Formats in SharePoint XSL

Use the below code for " DD/MM/YYYY " format < xsl:value-of select ="ddwrt:FormatDate(@DueDate, 2057, 1)" /> Other date formats Output Locale Format 3/23/2009 1033 1 3/23/2009 12:00 AM 1033 2 Monday, March 23 2009 1033 3 12:00 AM 1033 4 Monday, March 23, 2009 12:00 AM 1033 7 3/23/2009 12:00:00 AM 1033 13 Monday, March 23, 2009 12:00:00 AM 1033 15 23/03/2009 2057 1 3/23/2009 12:00 AM 2057 2 23 March 2009 2057 3 00:00 2057 4 23/03/2009 00:00 2057 5 23 March 2009 00:00 2057 7 00:00:00 2057 12 23/03/2009 00:00:00 2057 13 23 March 2009 00:00:00 2057 15

SharePoint: Using PreSaveAction Function on custom list forms

https://social.technet.microsoft.com/wiki/contents/articles/31330.sharepoint-using-presaveaction-function-on-custom-list-forms.aspx 

Show calendar events in modal dialog in SharePoint 2013

Add the below code in the calendar view page using designer or add using script editor / content editor in the page where calendar view inserted < script src ="http://code.jquery.com/jquery-1.11.1.min.js" type ="text/javascript"></ script > < script type ="text/javascript">     $(document).ready( function () {         setInterval( function () {             $( "a[href*='DispForm.aspx']" ).each( function () {                 $( this ).attr( "onclick" , "openDialog('" + $( this ).text() + "','" + $( this ).attr( "href" ) + "')" );                 $( this ).attr( "href" , "javascript:void(0)" );                 $( this )....

Set sender name using SPUtility.SendEmail

SPWeb oWeb = SPContext .Current.Web; StringDictionary headers = new StringDictionary (); string strFromEmailID = "Name to display <" + fromEmailAddress + ">" ; headers.Add( "from" , strFromEmailID); headers.Add( "to" , toEmail); headers.Add( "subject" , _subject); headers.Add( "content-type" , "text/html" ); System.Text. StringBuilder strMessage = new System.Text. StringBuilder (); strMessage.Append(_body); SPUtility .SendEmail(web, headers, strMessage.ToString());

Create Custom Field Type in SharePoint

Just follow the below steps to create a custom field type Its very simple to create a custom field type in SharePoint Step 1  : Open VS and create a new SharePoint Project Step 2:  Add SharePoint mapped folder                   - Control Templates Step 3 : Add another SharePoint Mapped folder                - XML Step 4: Then create user control named " MyField.ascx " and delete the code              file of the user control                          In our ascx file, delete the links to the code behind class and finally it                should be                                   <% @ Control Language ="C#" %> Step 5 : Add the below lin...

CONFIGURE ADFS 3.0 WITH SHAREPOINT 2013

https://blogit.create.pt/miguelmoreno/2014/11/14/configure-adfs-3-0-with-sharepoint-2013/ 

SharePoint 2010 Visual Upgrade Failed

Scenario :  I have faced visual upgrade failed issue after migrated the MOSS 2007 Content database to SharePoint 2010. Error which received during visual upgrade Visual Upgrade failed . The default master page for this user interface could not be found at “ /sites/site1/_catalogs/masterpage/v4.master ”. Add the requested master page at this path and try again. Then I have done the below thing to resolve the above issue 1. Created new sub site  2. Then i downloaded the V4.master file from the new site created 3. Uploaded the v4 master into site collection master page gallery  4. Tried visual upgrade  Its working without any issue.  i hope this will helps you...