1
2
3
4
public string CleanHtml(object Html) {
	var s = Html.ToString();
	var b = new StringBuilder();
...

C# C# HTML Encoding

by GateKiller, March 05, 2009 15:08, 6 refactorings, tagged with C#, html, sanitize

This is my own attempt at w...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
4
public static class DirectoryInfoExtensions
{
    public static void CopyTo(this String Source, String Destination, Boolean Overwrite)
...

C# DirectoryInfo.CopyTo

by GateKiller, November 11, 2008 17:10, 3 refactorings, tagged with C#, .net, directoryinfo, copyto

Because the .NET Framework ...

98c852e2d9b26249745ea92c72964d3f Talk

C# On Drop all Indexes in SQL Server

by GateKiller, October 07, 2008 11:55

Rik,

I knew sooner or late...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
Declare @Index varchar(128)
...

C# Drop all Indexes in SQL Server

by GateKiller, October 07, 2008 10:48, 4 refactorings, tagged with sql, Index

The below is some code I re...

98c852e2d9b26249745ea92c72964d3f Talk

C# On Backup All MS SQL Server Da...

by GateKiller, September 22, 2008 11:59

@Moodshield: Love it! It's ...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
Use Master

...

C# Backup All MS SQL Server Da...

by GateKiller, September 19, 2008 15:19, 2 refactorings, tagged with sql

I've recently blogged about...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
Declare @Name varchar(128)
Declare @Table varchar(128)
...

C# On Cache SQL Server Views

by GateKiller, July 25, 2008 10:50 Star_fullStar_fullStar_fullStar_fullStar_full

Just a couple of more chang...

98c852e2d9b26249745ea92c72964d3f Talk
1
Drop Table #Views

C# On Cache SQL Server Views

by GateKiller, July 25, 2008 10:20

Jonathan, Thanks very much ...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
this.getHttpRequest(identifier).onreadystatechange = function() {
	ajaxChat.handleResponse(identifier);
};

JavaScript On AJAX makeRequest

by GateKiller, July 23, 2008 08:35

Does it work if you remove ...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
Declare @Name varchar(128)
Declare cCursor Cursor LOCAL FORWARD_ONLY FAST_FORWARD READ_ONLY For Select Name From SysObjects Where XType = 'V'
...

C# On Cache SQL Server Views

by GateKiller, July 07, 2008 11:33

Thanks for the input guys :...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
Declare @Name varchar(128)
Declare @Cursor Cursor
...

C# Cache SQL Server Views

by GateKiller, July 02, 2008 15:07, 9 refactorings, tagged with sql query unoptimized

Question: Is there anyway t...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
4
// ***** Encryption and Decryption ***** //

byte[] Key(string sText) {
...

C# Encryption and Decryption

by GateKiller, June 20, 2008 14:00, 2 refactorings, tagged with Encrypt, Decrypt, C#

This is my first attempt at...

98c852e2d9b26249745ea92c72964d3f Talk