Archive for 'Snippets'
Using jQuery Dialog with ASP.NET
Posted on 08. Sep, 2009 by Wim Haanstra.
I have been playing around with jQuery a bit lately and I wanted to use the nice dialog boxes on my new project. The problem with the dialog boxes is, that they do not create a postback when one of the buttons is clicked. Also the values of any controls inside the dialog are always [...]
Continue ReadingMultiple web.config files
Posted on 14. Dec, 2008 by Wim Haanstra.
We all know this problem, when publishing your web applications to different servers, you always need to take extra care of your config files. Because database connections and physical paths stored in the web.config are machine specific. Well there is no real solution for this kind of problem, at least not one I could find. So [...]
Continue ReadingGetting .NET 3.5 apps to run on 2.0 hosting
Posted on 10. Oct, 2008 by Wim Haanstra.
As I mentioned earlier, I moved my hosting to MyDomain.com, which has a nice Windows based hosting plan. There is only one problem, they are running .NET Framework 2.0 and don’t have the intention to actually upgrade it for you. I wrote the backend of my iPhone app in C# 3.5, using LINQ and Ajax, so [...]
Continue ReadingApplication.Lock() & Current session count
Posted on 02. Jul, 2008 by Wim Haanstra.
I have been looking around the net to find the best way to keep track of the total number of concurrent sessions. There is one piece of code, that is posted on a lot of websites. The code that I find mostly is the following (I editted a bit, to match my coding style): Global.asax [csharp] protected void Application_Start(object [...]
Continue ReadingMy new prop.snippet
Posted on 28. Aug, 2007 by Wim Haanstra.
Currently I am designing and starting a huge project where we work on with a couple of people. Because we want to create extended documentation of our classes and their properties and methods, I finally started seriously using the comment XML feature of Visual Studio. So I adjusted my prop.snippet to match this new habit of [...]
Continue ReadingSimple logging class
Posted on 16. Jul, 2007 by Wim Haanstra.
Sometimes (ugh!) debugging can be a pain in the ass. Sometimes you just can’t debug like you want to (with nice breakpoint etc). At first I always wrote debugging statements to a file on the local hard drive, but that also got out of hand. You have too much info to process. Now for a project [...]
Continue ReadingSnippet Installation Help
Posted on 03. Mar, 2007 by Wim Haanstra.
Installing a snippet is actually really easy. Snippets are just stored files with XML in them. When you, for example, download my prop.snippet all you have to do is save that file to the following directory : C:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033\Visual C# Let’s analyze this, shall we? Ofcourse the ‘C:\Program Files\Microsoft Visual Studio 8′ part is [...]
Continue Readingprop.snippet
Posted on 03. Mar, 2007 by Wim Haanstra.
My very first post, well it better be something useful then. When working with Visual Studio 2005 you got a nifty feature called snippets. One of those snippets is de ‘prop’ snippet. When in Visual Studio you just type prop and then press tab twice and a nice piece of code shows up. Well, I [...]
Continue Reading