Is there a way that I can do redirect from codebehind based on screen width? Currently, I am using javascript to do something like this:
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "http://blahblahblah.com";
}
//-->
</script>
The page that is hosting this is under SSL, and all links on the front end need to show https, or else it breaks the security of the page. The url I am attempting to redirect to is NOT under SSL, and I have no ability to change that. If I do the redirect from the codebehind, it won't break security to pass off to an unsecured site. Any suggestions?