Posts

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...

Calculate financial year start and end date SQL Server

DECLARE @year INT = 2012 SELECT STDATE = DATEADD ( MONTH , 3 , DATEADD ( YEAR , DATEDIFF ( YEAR , 0 , DATEADD ( YEAR , @year - 1900 , 0 )), 0 )), ENDDATE = DATEADD ( DAY , - 1 , DATEADD ( MONTH , 3 , DATEADD ( YEAR , DATEDIFF ( YEAR , 0 , DATEADD ( YEAR , @year - 1900 , 0 ))+ 1 , 0 )))