Javascript redirect causing a security exception in asp.net 4.0 forms
<p>As part of my current project I have had to make a page take on two functions due to some functional limitations.</p>

<p>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.</p>

<p>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.</p>

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

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

<p>Any ideas would be greatly recieved.</p>

<p>Thanks in advance</p>
