The usual way to solve this problem is to redirect the user with javascript enabled and display an error for the user who disabled it using the tag noscript.
<script type="text/javascript">
location.href = 'pagethatneedsjavascript.aspx';
</script>
<noscript>
This page needs JavaScript enabled!
</noscript>
, , , ,
<a href="/linktopage.aspx?js=disabled"
onclick="location.href='/linktopage.aspx?js=enabled';return false;">the page</a>
javascript, , href, JavaScript onclick.
, ""
if ( Request.QueryString["js"] == "disabled" ) {
Response.Redirect("error.aspx");
}
, , js = enabled js.