[英]I want to run a new page on my website after the registration is finish
我完成(成功)新用户注册我想从我的代码后面的新通知页面中更改当前页面。
为此我使用javascript:
<script type="text/javascript">
var Tag;
function notifyscript(TagName) {
tag = TagName;
var myTag = document.getElementById(tag);
myTag.click();
}
为了打电话:
<a id="notify" href="http://localhost/Pages/Account/Notification.aspx" target="_parent"/>
但是当我在本地运行它时,它会给我一个错误。
500 (HTTP Error 500.0 - Internal Server Error The call fails LoadLibraryEx στο φίλτρο ISAPI "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\\\aspnet_filter.dll"
当我在网上运行这个什么都不做。
有谁知道怎么做这个动作?
我的意思是当后面的代码结束注册时打开一个新页面。
请在Code Behind上尝试此代码:
string url="www.google.com";
string msg = "<script type='text/javascript'>" +
" $(document).ready(function(){ " +
" window.location.href='" + url + "';" +
" });" +
"</script>";
page.ClientScript.RegisterStartupScript(page.GetType(), "myURL", msg);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.