How to switch/override the variable ‘aspxerrorpath’?

Jul 7 2009 10:06 AM
I am getting the problem of aspxerrorpath. I dont want asp.net to validate this variable, even when I have custom page error enabled. If I write something like alert(7);'">https://...../asd.aspx? aspxerrorpath=' it throws an error and forward me to the aspx error page by default and not to one of my pre-defined custom error pages. Why? How can I override the aspxerrorpath behaviour?