Jevgeni Borozna's blog

SharePoint, ASP .NET

Browse by Tags

All Tags » C# (RSS)
Workflow ASPX Initiation Form bug in Visual Studio 2010
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...
Getting default Workflow History List in SharePoint
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...
Most interesting from SharePoint 2010 Virtual Ignite Training: 2nd Day
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...
Long operations on a SharePoint 2007 page
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...
Getting all types from core library that implements specific interface
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...
Extending Control class to search sub-control by type
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...
Searching for sub-control by type
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 all Web Applications in a SharePoint farm
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 string in C#: String += vs string.Format vs StringBuilder
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...
Posted: Dec 11 2009, 03:35 PM by Jevgeni Borozna | with 6 comment(s)
Filed under: ,
More Posts