Category: Programming

Dec 14

Enumeration: What are the different SharePoint permission levels and their enumeration values?

You can learn more about this here: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx but basically below is the information you’re looking for obtained from the source code: namespace Microsoft.SharePoint {     // Summary:     //     Specifies the built-in permissions available in Windows SharePoint Services.     [Flags]     public enum SPBasePermissions     {     …

Continue reading »

Sep 27

How to: Enable anonymous access on SharePoint?

Sometimes you need to publish a site anyone should be able to see or maybe even add information to. In order to do this you need to have Anonymous access enabled on the site. One step many people miss is that anonymous access has to be enabled at the web application level otherwise it is …

Continue reading »

Sep 16

What character escape sequences are available in C#.Net?

C# defines the following character escape sequences: ‘ – single quote, needed for character literals ” – double quote, needed for string literals  – backslash  – Unicode character 0 a – Alert (character 7) b – Backspace (character 8) f – Form feed (character 12) n – New line (character 10) r – Carriage return (character 13) t – Horizontal tab (character 9) …

Continue reading »

Sep 10

Most commonly used Regex expressions

Lately as part of my work I came across the need to validate some fields and realized probably there should be some common Regex expressions out there I could leverage. This came about because I was doing some code reviews and the validations were not working as intended and I wanted to find some generally …

Continue reading »

Aug 26

How to: Hide a row in Telerik’s RadGrid

If you are looking for a way to programatically hide rows you don’t wish to show from your data source whether by triggering an event or by a condition you can do it. It’s actually pretty simple once you figure out the method exposed for you to use. Below is an example of what I …

Continue reading »

Jul 25

How to: Easily explore technical artifacts in SharePoint 2010 and even delete site collections and webs

As a SharePoint developer you probably find yourself in the situation where using the SharePoint central administration becomes a rather painful task as many of them take several clicks and it is not easy to obtain a nice tree view of all the information you need and take actions on them. However, if you look …

Continue reading »

Jul 25

How to: Telerik RadGrid loses it’s state of expanded and contracted groups whenever you databind

The grouping functionality of the Ajax control RadGrid from Telerik is probably one of its most attractive features. However, many users might encounter themselves in a situation where you can take action on any given element and you wish to update the information being displayed on-screen to correspond to the action you’ve taken on the …

Continue reading »

Jul 22

From where does ASP.Net tries to load Assembly files?

The answer can be found if you look at the error message when ASP.Net can’t find the assembly. Below is a list of places it would look for the assembly for Telerik.Web.UI: LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/7b4cc07f/99d5b9e0/Telerik.Web.UI.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/7b4cc07f/99d5b9e0/Telerik.Web.UI/Telerik.Web.UI.DLL. LOG: Attempting download of new …

Continue reading »

Jul 22

How to: Uninstall an assembly (dll) from the GAC

So, you probably have already tried going to the GAC and selecting uninstall, if not, below are the instructions: Navigate to the GAC, which is located at %systemdrive%WindowsAssembly. Right-click on the assembly you wish to uninstall, click Uninstall, and then click Yes to confirm.  In my case I kept wondering why I can’t possibly follow those simple instructions. …

Continue reading »

Jul 19

How to: Call a base constructor in C#.Net

Recently I decided I wanted to start creating children classes to handle my Exceptions, but I ran into the issue that I couldn’t quite call the base constructor and I kept asking myself why if I didn’t define a constructor the class couldn’t use the base class and automatically expose them. So below is kind …

Continue reading »

Load more