How to switch/override the variable ‘aspxerrorpath’?
-
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=<script>alert(7);</script>'
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? -
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=<script>alert(7);</script>'
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?So which error code it is throwing? Did you handled it in your web.config file ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article