Reputation: 635
I want use ajax.net to do some js. like below:
ScriptManager.RegisterStartupScript(Submit, typeof(Button), "alert", "location.href='test.aspx';", true);
If user turn off the javascript, it will not redirect to another page.
I want to know how to set <noscript></noscript>.
Thanks a lot!!
Upvotes: 0
Views: 186
Reputation: 30671
I would use Response.Redirect("test.aspx") which does not require JavaScript and should be supported by most of the modern browsers.
Upvotes: 0
Reputation: 21695
Here:
<noscript>
<meta http-equiv="refresh" content="0; URL='no-script.aspx'">
</noscript>
Upvotes: 1