Quantcast
Channel: Fraction of the Blogosphere » csharp
Browsing all 9 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Bind 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 Article

Image may be NSFW.
Clik here to view.

Quick 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 Article

Image may be NSFW.
Clik here to view.

Serialize 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 Article

Image may be NSFW.
Clik here to view.

IIF 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 Article


Image may be NSFW.
Clik here to view.

C# 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 Article

Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

C# 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 Article


Image may be NSFW.
Clik here to view.

TPL 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

Browsing all 9 articles
Browse latest View live




Latest Images