Monthly Archives: April 2010

Visual Studio 2010 Keyboard Shortcut Posters

I always hate to use mouse while writing code in Visual Studio to do certain things like go to line, bring up solution explorer/Team Explorer window,  comment out code etc..  I prefer to use short cut that are available in

Posted in Microsoft Technology Tagged with:

Add JavaScript inside Head at runtime

I was wondering how can I emit JavaScript within the <HEAD> element of ASP.NET page from code behind.  I knew that we can insert JavaScript using RegisterClientScriptBlock and RegisterStartUpScript but those method is being used to add JavaScript block within

Posted in Microsoft Technology Tagged with:

ASP.NET session expires before timeout value specified in Web.Config

Note: You can refer this article to know more about different ways to store session state. There are number of reasons why values stored in session being lost before session timeout value set in web.config. Are you using In-Proc Session

Posted in Microsoft Technology Tagged with:

IIS 404 Custom Error not working as expected

When I tried to access fake .aspx page to make sure IIS returns custom 404 error page, I saw .net specific error “The resource cannot be found”. Screenshot# 1 I was wondering why IIS custom 404 error page not being

Posted in Microsoft Technology Tagged with: ,

Fiddler doesn’t capture IE web traffic

I was using Fiddler to capture web traffic.  I was able to see all web traffic logs in Fiddler when I was using Firefox or safari browser but Fiddler wasn’t capturing web traffic while using IE (though worked for external

Posted in Microsoft Technology Tagged with:

Page_load event fires twice with FireFox only

I came across weird behavior of Firefox 3.0.X that submits forms twice.  Let me explain what I have seen. Main.ascx has a reference of UC1.ascx Main.ascx also has a UC2.ascx control reference. When I make the request to PageX.aspx that

Posted in Microsoft Technology Tagged with: ,

Ads