Archive for the ‘C#’ Category

Tip – Disable mobile master page in asp.net

Tip – Disable mobile master page in asp.net In most of the web applications currently, they are designed with responsive css in mind. So, one master page is enough. Asp.net switches to mobile master page (site.mobile.master) automatically when viewed in mobile. How to disable that? Email this page

November 10, 2014 · Adi · 5 Comments
Tags: , ,  · Posted in: C#, Tips and Tricks

Best Coding Practices in SharePoint – Part1

Introduction This post covers some of the best coding practices that should be followed in SharePoint development. We will also see of the bad practices and why we should avoid them. It is highly essential that everyone involved with SharePoint should know about these best practices. I am providing in various series due to high […]

June 12, 2014 · Adi · No Comments
Tags: , , ,  · Posted in: Best Practices and Standards, C#, Sharepoint 2010, SharePoint 2013

Data Tier Generator

Introduction I am really fan of any automation that will reduce development time. Sometimes simple things might take time though not complex. One good tool I came across is Data Tier Generator in CodePlex. Email this page

February 21, 2014 · Adi · No Comments
Tags: ,  · Posted in: C#, Code Snippet, SQL, Tools

Code Snippet – Creating context objects in SharePoint 2013 / 2010

Introduction Code snippet how to create site context objects using Server Object Model, Managed Client Object Model, Silver Light Object Model, Javascript Object Model in SharePoint 2013/2010 Email this page

January 19, 2014 · Adi · No Comments
Tags: , , ,  · Posted in: C#, Sharepoint 2010, SharePoint 2013

Using SQL Full-Text Search in SharePoint

Introduction Along with keyword queries, you may also create solutions that use Enterprise SQL Search Query syntax. Enterprise SQL Search Query syntax is a full query language that gives you significant control over the executed query. In this post we will see how to use SQL Full-Text Search. In my earlier post you can also […]

December 7, 2013 · Adi · No Comments
Posted in: C#, Search, Sharepoint 2010, SharePoint 2013

Keyword Query in SharePoint Search

Introduction Most of the user are not often familiar with the special keyword query syntax supported by SharePoint. Keyword query syntax allows users to enter keywords, phrases, and Managed Property names to create sophisticated searches. In addition, keyword query syntax supports operations and wildcards. In this post we will cover Keyword Query in SharePoint Search. […]

December 7, 2013 · Adi · No Comments
Tags: ,  · Posted in: C#, Search, Sharepoint 2010, SharePoint 2013

Tip – Timer Job Service in SharePoint

Tip – Timer Job Service At certain times on redeploying your source code for an already existing timer job, you may find that your changes are not getting reflected. To resolve the issue you can restart the Timer Service from the Windows Services Management console (services.msc) or quick way to do is by command Email […]

November 2, 2013 · Adi · No Comments
Tags: , , ,  · Posted in: C#, Sharepoint 2010, Tips and Tricks

Tip – Timer Job Constructor in SharePoint

Tip – Timer Job Constructor Default constructor in timer job class is mandatory else you end up with the error “TimerJobxxx cannot be deserialized because it does not have a public default constructor.” when activating the feature that installs the job. You should have constructor like below code Email this page

November 2, 2013 · Adi · No Comments
Tags: , ,  · Posted in: C#, Sharepoint 2010, Tips and Tricks

Modifying web.config in SharePoint

Introduction This post covers how to modify web.config through object model in SharePoint. Changes to the web.config should not be done manually which is a bad practice. Modifications should be done through SPWebConfigModification class object and the complete track of changes will be saved in configuration database. This is the best practice to be used […]

November 2, 2013 · Adi · No Comments
Tags: , , ,  · Posted in: C#, Sharepoint 2010

Logging in SharePoint

Introduction This post covers how to log information when working with SharePoint. We may require to log exception details or to log any data for information purpose We will see how easy in SharePoint to log information using SharePoint Logger and how easy to view the logged information. Skill Level – Medium Email this page

October 31, 2013 · Adi · No Comments
Tags: , , ,  · Posted in: C#, Sharepoint 2010, Sharepoint Deployment