HTML Table to ASP.NET Table

To convert an HTML table (from a string) to an ASP.NET table: Start with an HTML table: Create a Helper class: Open the HTML file, and pass the root node to the helper class: The helper class needs to be fleshed out some more, to provide support for other elements and valid HTML, but it’s... Continue Reading →

C# Reading content from text files

This is something I do frequently, and I always forget the streaming syntax, so here it is. There are couple of ways to do this. Firstly, from an application: From the properties panel, set the Build Action as Resource and the Copy to Output Directory as Copy Always From code this can then be accessed... Continue Reading →

C# Event Delegates

Using the "+=" notation when creating delegate event is a really fastway of coding but there is a caveat if the delegate is declared in thewrong place. for example declaring the handler inline, in a method: private void btn_Click(object sender, System.Windows.RoutedEventArgs e){EventBus.Event+= new EventHandler(EventBus_Event);// code here} When the btn_Click method is fired, an event handler... Continue Reading →

A Website.

Up ↑