Thursday, January 12, 2012

Javascript redirect causing a security exception in asp.net 4.0 forms


As part of my current project I have had to make a page take on two functions due to some functional limitations.



At present the two views are turned on and off based on a query string value. The page is loaded from an menu that is similar to that of the original ipods and as such uses Javascript to kick things off.



The problem is when I select my url (along with the query string value) I get a potential security risk error. I believe that its down to security not allowing Javascript to redirect with the query string, however I am at a loss as to how we solve this one.



The error reads -- 'A potentially dangerous Request.Path value was detected from the client (?).'



I know that I can turn the security off on the page, however this is not an option in this instance.



Any ideas would be greatly recieved.



Thanks in advance

No comments:

Post a Comment