Programmatically fire an event handler in ASP .NET
I recently came across a situation which any web application developer may face where an assembly reference containing the code-behind for each ASPX page was deprecated and the original source code was...
View ArticleBind Control to an Object in Windows Forms
Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types...
View ArticleQuick Silverlight References
Most of the links below are relatively introductory, but they do serve as a quick refresher if it has been awhile since you have worked with Silverlight. Though not all of the links are specific to...
View ArticleSerialize and Deserialize classes and objects in .Net
Serialization is a powerful tool and a major factor in many intermediate development technologies such as webservices. Simply call “SerializeObject” and pass in the class name of your object for the...
View ArticleIIF in C#
I always find myself referencing my other projects for this one when I jump between languages, so decided to toss it on the web. Both examples are in the context of ASP .Net, but syntax also applies np...
View ArticleC# and VB Equivalents
VB: 'shorthand object constructors; assigned initial properties dim p as New Person() With {.FirstName = "john", .LastName="smith"} 'add handler for events AddHandler context.BeginRequest, AddressOf...
View ArticleThe type initializer threw an exception
In case this error seems to appear out of thin air in your application, this is usually an indication that a variable declared in one of your classes (likely a static class) is having trouble getting...
View ArticleC# Event Handlers and Delegates in ASP .Net with Web User Controls
This article should help as a general how to on event handlers and delegates in C# as well as propose a different way to handle cross page methods in your ASP .Net website from a web user control or...
View ArticleTPL Task Parrallel Library .net 4.0 parallel programming multi thread...
//simple parallel function call Parallel.Invoke(() => somefunc1(), () => somefunc2()); //parallel foreach with two lists new List<List> tasks = new List<List>() { new List() { new...
View Article
More Pages to Explore .....