Category: CSharp
Simple FTP Download
Reference: http://stackoverflow.com/questions/2781654/ftpwebrequest-download-file
CSharp – Random Password Generator
Sometimes it’s helpful to simply have a random password. In this small group of code you can define what parameters to use, I have taken the liberty to remove some of the characters that are usually mistaken for a different character like an upper case I and the number 1….
C# Backup and Restore MySQL Database(s)
Must Download DLLs from http://mysqlbackupnet.codeplex.com/
C# Clean String Input
You can use the CleanInput method defined in this example to strip potentially harmful characters that have been entered into a text field that accepts user input. In this case, CleanInput strips out all non-alphanumeric characters except periods (.), at symbols (@), and hyphens (-), and returns the remaining string….
C# Application Form Closing Event Question
Sometimes you have a program that you would prefer someone not close without confirming they truly meant to close it. This script will assist in providing a question before the program simply closes.
C# String Like
I had a need to find a string like function similar to MSSQL and found this useful function. Reference: http://stackoverflow.com/questions/5417070/c-sharp-version-of-sql-like