本文介绍了我想在显示成功消息后关闭当前窗口,并使用scriptmanager重定向到登录页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
它不工作,
ScriptManager.RegisterStartupScript(Page,this.GetType(),Alert, alert('成功,您的新密码已发送到您的邮箱,使用新密码登录'); window.parent.location.href ='.. / Login.aspx'; self.close();,true) ;
如何让它工作,请建议。
我想在显示成功消息后关闭当前窗口并使用scriptmanager重定向到登录页面。
解决方案
Hi,
It is not Working,
ScriptManager.RegisterStartupScript(Page, this.GetType(), "Alert", "alert('Succeeded, your new password has been sent to Your Mail, Login with new Password'); window.parent.location.href='../Login.aspx'; self.close(); ", true);
how to make it work , please suggest.
I want to close the current window after showing success message and redirect to login page using scriptmanager.
解决方案
这篇关于我想在显示成功消息后关闭当前窗口,并使用scriptmanager重定向到登录页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!