Quick Tips And Solutions
A couple of days ago I was asked if there was any way by which I could overload a method to "return" more than one type. If I was in a class room, or I was teaching a programming class (I've done that for some part of my life :)) my instant answer would have been "No." And then I would have proceeded to explain why the whole idea was not valid in the Object Orientation world. However, this question was not coming from a high school student. In all probabilities it was coming based on a practical...
I first read about Nullable Types around 6 months or so ago. Since I last heard about / used Nullable types, I had completely forgotten about the syntaxes and was completely stumped when I was asked what "int? x" meant by a couple of guys at work. I'll not Blog about the basic concepts of Nullable Types here. I think this MSDN Article does a particularly good job at it. What I'll Blog how ever is the basic syntax which is so darn confusing at times that I've read about it once, seen it getting used...
Besides being a DotNet developer I've spent some part of my life (3 odd months) in the past, being a Linux Administrator. Every guy in the Linux world loves the bash Auto-complete feature. The part where you type the partial name of file or directory and hit the tab button and the console completes the typing of the entire file / directory name for you. I just think it's Natural (and super cool) for an OS to be able to reduce the number of clicks (or keystrokes, for that matter) and help you get...
I faced this problem while using NetTires which I highly recommend for anyone who wants to quickly generate a Data Access Layer using Microsoft Enterprise Library without having to do the grunt work and writing boilerplate Data Access Code. In my efforts to not digress from the Topic I am going to keep some other data access mechanisms that I've used in the past out of the scope of this post and just state that NetTires is a Decent enough Data Access Mechanism I am currently in love with and am using...
I’ve been reading a LOT lately, mostly during my commute. I’ve been a MP3 Audio Book guy for the past few months but nothing beats reading. So, lately I’ve been accompanied by my 1.5 year old Tungsten E reading on my way home and to office. The T/E has shown some battery drain issues last week. I had nothing to do this Saturday, (practically half of my family is out holidaying) so, I decided to waste some time trying to investigate what I can do about the battery drain issue the...
If you’ve tried moving an eBook you bought on Amazon that was protected with DRM to your palm device and have been successful skip this post. However, if you’ve tried your hands at if and failed (becuase you were as confused as me) read on. Trying to the use the Acrobat Reader for Palm OS (that works for all of my other PDFs) kept throwing the following error - "This document has not been encrypted using stand security handler and therefore could not be opened" A Few minutes on Google...
Yet another "I didn't know this" moment - Turns out, static variables in a class in ASP.NET are pretty similar to application objects but I am going to keep my long-winded posts really short this time. Long story short: "A key reason that the Application object exists in ASP.NET is for compatibility with classic ASP code—to allow easier migration of existing applications to ASP.NET. If you are creating an ASP.NET application from scratch, you will want to consider storing data in static members...
One of the Questions I was asked on my Article on Atlas @ Code Project at http://www.codeproject.com/... was How do you make the Atlas Controls Appear on your Visual Studio toolbox once you download them. The official documentation from Microsoft states these steps: Create a new web site from the "Atlas" web site template by opening the "File" menu, clicking "New", "Web Site...", and picking ""Atlas" Web Site" under "My Templates" Right-click on the Toolbox and select "Add Tab", and...
As much as I would like to take the credit for this post, it was actually the author of this post that figured it out! If you've been trying desperately to get your hands on IE 7.0 Beta but couldn't because you were on Windows 2003 - here's how you can make the Beta work on Windows 2003 even though it's not supposed to, by design. The Procedure is pretty simple and direct. Get the beta Download Executable. Unzip the Executable using WinRAR. Navigate to the Update Folder. Backup the Update\Update.inf...
Working on a DotNetNuke Project we had a requirement which was pretty .NET'ish and had nothing to do with DotNetNuke. All we wanted to do was to store a Generic list of <T> in the view state - where <T> was a XXX_Info class we usually write for DNN module. For Any information to be retained in the view state it was obviously implied that it had to be serialized. If you're looking for some fairly complicated code to manually serialize Generic Classes you probably want to go here: http://www.devx.com/dotnet/...
Full Quick Tips And Solutions Archive