Ajax.net 但没有脚本
我想使用ajax.net做一些js。 如下所示:
ScriptManager.RegisterStartupScript(Submit, typeof(Button), "alert", "location.href='test.aspx';", true);
如果用户关闭 JavaScript,它将不会重定向到另一个页面。
我想知道如何设置。
多谢!!
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!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里:
Here:
我会使用 Response.Redirect("test.aspx") ,它不需要 JavaScript,并且应该受到大多数现代浏览器的支持。
I would use Response.Redirect("test.aspx") which does not require JavaScript and should be supported by most of the modern browsers.