Browse by Tags
All Tags »
C# (
RSS)
When you are adding Workflow Initiation Form to your Visual Studio project, then Visual Studio generating aspx page with buttons and code behind with some lines of code. SharePoint workflow can be associated with list, site or content type. This generated...
When it is needed to add Workflow Association programmatically, then it requires instance of Workflow History List. There is 2 possibilities: list already exists or you should create it. private static SPList GetHistoryList( SPWeb web) { string historyListName...
9 feb 2010: Virtual SharePoint 2010 Ignite Training for Developer Notes: Intellisense when editing Wiki-pages and other type of pages and inserting some page property. (When writing “[["…) 4 default Master Pages: v4.master (default for SP 2010) minimal...
Sometimes you would like to accomplish some task on a Page which takes more time than is set as “timeout” and you are seeing Request timed out in your browser. This type of error is not so informative for end-user and is not beautiful for a complete solution...
Sometimes you don’t know which of all .NET framework types better fits you requirements, but you know that this class must implement some interface. Following code gets all types that implements specific interface by interface name: using System; using...
I have already wrote in my previous post about searching sub controls by type. Post: Searching for sub-control by type Now I’m suggesting more useful extension-type method to extend all classes derived from Control class (for example Page, TextBox, DropDownList...
Sometimes you need to search for some sub controls and its ID doesn’t depends on you. For example, you don’t know how this control will be rendered in different conditions. Like SharePoint fields are rendered. You know that there must be one TextBox ...
Iterating through SPSiteCollection and SPWebCollection is a pretty simple, because getting these collections is a simple. SharePoint API doesn’t provide any method to get collection of all Web Applications in a farm. Here we need to write more code, than...
Appending strings performance test String += creates new instance of object and saves it in memory, as a result you have 2 string objects in a memory. For this kind of targets .NET have class named StringBuilder which will work 2500 times faster than...
More Posts