March
March

Reputation: 635

Ajax.net but no script

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

Answers (2)

Atanas Korchev
Atanas Korchev

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

Kirtan
Kirtan

Reputation: 21695

Here:

<noscript>
  <meta http-equiv="refresh" content="0; URL='no-script.aspx'">
</noscript>

Upvotes: 1

Related Questions