When I tried to add html to data for my GridView control, I could only see html code. I could see "<span class="myhtmlclass">my text</span> from SQL request</span>. But I wanted to wrap my content with <span> tags. (read more...)
When I tried to add html to data for my GridView control, I could only see html code. I could see "<span class="myhtmlclass">my text</span> from SQL request</span>. But I wanted to wrap my content with <span> tags. (read more...)
The reason of error "'Namespace.className.source' is inaccessible due to its protection level" is that by default class variables "source" and "substitute" are protected and you don’t have access to them anywhere out of the class. (read more...)
GridView is a powerful and easy in use tool in Asp.net, especially if you know how to use it. There are a lot of tutorials how to add dynamic hyperlink column to GridView not programmatically, but this tutorial is about how to add hyperlink to GridView programmatically (in code-behind). (read more...)
In this post I write some examples of C# coding for SharePoint list items. These methods are rather fast and it's very actual for SharePoint. (read more...)
Using of control FileUppload has some specialities – there must be made a PostBack on your event. But using UpdatePanel there’s no PostBack event on client click. For correct work you should use PostBackTrigger.
To add multiple upload control and set up handler for it is quite easy in Visual Studio 2013. (read more...)
C# and .Net are rich in methods to complete the task. With each new version we have new classes and methods. Reading and parsing XML is not an exclusion. Below I’ll tell you about 3 methods for reading XML-data in C#. (read more...)
I found a great collection of Visual Studio shortcuts. While coding I often comment some lines of code. Using shortcuts it's even more easy. It's not a common combination - select lines to comment and press Ctrl + K then Ctrl + C, to uncomment - Ctrl + K then Ctrl + U. (read more...)
In this post I'll describe two ways to sort List<T> generic collection by one of it's fields. It's very useful and not easy for beginners. (read more...)
Using this method you can copy attachments from one list item to another. You can add it to SharePoint workflow or any other action. (read more...)