Subscribe to C# codes        RSS Feed
- - - - -

Export a DataSet's Table as an .XLS Excel document

Icon 1 Comments
Hey, I recently had to export some database information in the form of Excel. There's a lightweight way to do it, but no one has documented it well. The closest I got to doing it that way was here...
* * * * *

Scrape a webpage/ php script

Icon Leave Comment
You know when you right click a website to view it's source? Well you can do that in C# and save/manipulate the string however you'd like, and it's FUN! The below code illustrates.

...
- - - - -

Delete all records between specific dates

Icon 1 Comments
Ever needed to delete a series of records between dates? For example, maybe you have this problem? Or some problem where you need to go into a dataset and delete records between a series. Well I've got just the function for you:



...
- - - - -

Extension check if table exists (WORKING .NET 2.0)

Icon Leave Comment
using System;
using System.Collections.Generic;
using System.Text;

// this fixes extension methods in .NET 2.0
// Remove this if you're using .NET > 2.0
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class ExtensionAttribute : Attribute
{
...
- - - - -

Extension for dealing with associated controls within a host controls event

Icon Leave Comment
public static class UIExtensions
{

public static Control GetAssociatedControlByType(this Control sender, Type TypeOfDesiredControl)
{
// designed for dtCards
// Imagine this, you have two controls side by side on a form. When you do something in the left, you'd like to manipulate the right control...
- - - - -

313_Events, (Delegates) And WPF User Controls.txt

Icon Leave Comment
::Events, (Delegates) And User Controls.txt::

Do you know why delegates are so necessary? Well, they're practical for when you need to hard code a function to be called, but don't know which function will be called exactly...
If you answered my first question no, then you're probably wondering, "Well, when the hell do you need...
- - - - -

PRINCIPLES OF FUZZING for reliability testing

Icon Leave Comment
Abstract under Form1_Load(...).

...
Page 1 of 1

July 2014

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
272829 30 31