Category: Programming

  • 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 🙂

  • Selecting menu item using Javascript

    Okay, I create a pure CSS menu that use UL/LI structure to maintain the child relationship. All was great with this menu except that when you are on any of menu item page it doesn’t highlight that menu item explicitly. If you consider this it is not a big deal. What you can do is…

  • ASP.NET JavascriptSerializer for Array

    I need to throw some database entry which are as simple as TIME, for this I got a string array in my ASP.NET code behind. I was throwing this String Array in JSON format after using JavascriptSerialize.Serialize method and it is making not so perfect Json script. I said it is not making perfect json…

  • Read System TimeZone to DB

    I was looking for the TimeZone Database which also need to told me if Given Timezone is DayLightSaving enabled or not. After searching few hours on Internet I found few database that do not tell the Daylight Saving stuff. Then I found a function in TimeZoneInfo class that list all System Timezone, I loop through…

  • .htaccess Hack

    Today, I got another wordpress that stop working and start giving 404 error. Previously client got it fixed by removing .htaccess from his installation and get it working. I thought he might mess his wordpress himself. But when we got similar error today I search and little and find that in .htaccess there is a…

  • Facebook SDK: IE redirect loop

    Recently we had problem with Facebook SDK, that on IE it remain in redirect loop and hence our facebook application was not working. I test it to find that it wasn’t getting the session detail on form submission. The reason is Security policy of IE that prevent 3rd Party Cookie drop which is required for…

  • Working Lot of new methodology

    It is good to back as programmer. Loving my new phase of development career, I got involved in development of a online card game. After lot of thinking and reading, I decide to use some new technology and methodology which I have been hearing about a lot. I don’t dare to use them as I…