Seamless Solutions, Tailored Integration info@wkintegrations.com Kendal, Cumbria, UK

Tag

c#

7 posts tagged “c#”.

Connection String

Open Notepad Save the blank file as myConnection.udl Close notepad Double-click the udl file you just saved Fill it in and test it until successful Once succesful, close the udl…

Visual Studio 2010 versus COM-Object fails

I spent ages trying to find a solution to this issue after upgrading to VS2012. This link solved the problem and stopped me returning to VS2005. Why Microsoft, why? Thank…

Examples of Regular Expressions

Trim string in JavaScript var trimre='^s+|s+$'; // replace whitespace var trimmedstring = string.replace(trimre,""); Check for a valid date format in JavaScript var re='^(d{1,2})/(d{1,2})/(d{4})$'; // dd/mm/yyyy if (!datestring.match(re)) { alert("Date" +…

Creating a Banned Words Filter

I have a website with a user forum and content management system, where certain users (or anyone in the case of forums) can post to. I therefore had to create…