I have an old site with many old sins in it’s source and one of them is that i have an if statement checking the Request.Url string if it contains “Default.aspx”. This has worked once upon the time but yesterday i realized that this doesn’t work any more cause the URL returned is always in lower case (although my file name is Default.aspx).
Is this some strange little fix that has been done to IIS or to asp.net? I suppose it could have been something that i have done as well but i thought i might as well ask, maybe some of you know something about this, or if any global setting somewhere could cause this.
your if statement could be like this: