One QA ! Thank
string Sentmsg = " <script language= 'JavaScript '> alert( 'Your email has been sent.Thank you. '); </script> ";
Page.RegisterClientScriptBlock(this.GetType().FullName, Sentmsg);
if (CSContext.Current.QueryString[ "returnUrl "] == null)
Page.Response.Redirect(Globals.GetSiteUrls().UrlData.FormatUrl( "profilehome "));
else
Page.Response.Redirect(CSContext.Current.QueryString[ "returnUrl "]);
考虑使用者在点击发送按钮后先弹出一个提示 " 'Your email has been sent.Thank you. " 然后在根据个人的权限跳转到其他页面上去,但是以上代码总是只能跳转页面而不能弹出提示.
请问要如何改变才能达到功能要求!谢谢
------解决方案--------------------用this.Page.RegisterStartupScript( "a ", " <script> alert( 'test ') </script> ");来调用脚本方法,不要用Page.Response.Write,你再试试