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…
Tag
7 posts tagged “c#”.
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…
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…
From a child form I wanted to close the parent form after a button was clicked, the following is the code I used: Voila!
When I was populating an System.Drawing.Image object from a folder of images I revceived the following error message: "System.OutOfMemoryException: Out of memory" At first I thought I had a very…
Whilst writing some code to search forum posts I had the reason to remove all HTML tags from the forum posts before I could do a valid phrase search. I…
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" +…
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…