Yes I tried removing the inline code block and everything works fine, but I need the inline code block inside my html code, please see the code that I inserted:
In the page skin like said before on my first post I used a code like this:
<%If Request.IsAuthenticated Then%>
<script type="text/javascript"> core.addlogout();</script>
<%End If%>
The idea for this code is when the user was authenticated I can execute any method in javascript. This code works perfect, but when I tried to change the language using the site received the error that I posted before.
<dnn:LANGUAGE runat="server" id="LANGUAGE1" showMenu="False" showLinks="True" />
Also if I tried to do something like this the result is the same (Site Crash and receive the same error for inline code)
if (window.location.href.indexOf('en-us') != -1)
window.location = window.location.href.replace('en-us', 'es-es');
else
window.location = window.location.href.replace('es-es', 'en-us');
Please help me with that,
Regards and Thanks
Frank