Category: .NET

  • ASP.NET: Why my cookie is not saving

    Funny, today after years I thought to finally use Cookies in one of my project. It is probably my first attempt to use Cookie in ASP.NET in last 5 yrs. WOW, that is amazing. Anyways, I just notice one thing and thought it might help any first timer, so here is the key note I…

  • Regasm 64bit or 32bit through Windows Installer in Visual Studio

    Well, nothing much to say, this article is taken from http://leon.mvps.org/DotNet/RegasmInstaller.html. Thanks Leon, just for my own bookmarking here are step. [Article is taken as it is from Leon’s article.] Realising that I couldn’t be the only person who’s having this problem, I’ve decided to share the code to assist others. All you need to do…

  • Excel Automation Add-In for Office 64bit Check List

    After days of research, hit and trail; today I finally got a working 64bit Excel Automation Add-In. I am using Visual Studio 2010 [.NET 4.0 client profile framework].  1. Create a Project using Visual Studio Office 2010 template “Excel 2010 Add-In”. [I opt for this as I need Ribbon UI too, if you don’t need…

  • Sandcastle: Code Documentation in C#

    Over the years I use lot of documentation and those help me build my software with ease. However, never need to build one for my projects as they are not quite often big and what more never need to do so, as they are quite handful of function in complete project. But now in order…

  • GDI+ Generic Error

    I see lot of people asking about GDI+ Generic Error. Since this is “generic” error nobody can tell what is wrong with code. So did a work around and get it working. I had this error quite a time in early days of my programming and just found same error in one of junior’s code.…

  • Static Object in ASP.NET

    Recently I found a problem in one of application we developed. Here my colleague use a Static SqlConnection object through a class in his code. He did that to save his effort of writing and Connection everytime. Everything works great during our development and online reviewing. However as soon as we lauch website in beta…

  • Session in ASP.NET handler Page

    To use Session data in Handler Class you need to implement IRequiresSessionState which is part of Following namespace (using for helping copy/paste ) using System.Web.SessionState; Self reminder 🙂