我在我的aspx页面中使用了此脚本管理器。asp.net中的aspx和.cs页面上的警报脚本和response.redirect
ScriptManager.RegisterStartupScript(this, this.GetType(), "Redit", "alert('Registered Successfully !!'); window.location='" + Request.ApplicationPath + "/admin/CreateSubAdmin.aspx';", true);
当我在本地服务器使用它比它正常工作。和URL看起来像:主机网址:xyz.aspx /管理/ CreateSubAdmin.aspx
下划线部分是在管理部分。
但在服务器上,这是不正确的工作。它看起来像:/admin/CreateSubAdmin.aspx。
但我希望它显示像www.xyz.com/admin/CreateSubAdmin.aspx。
所以我写错了。 PLZ帮助我。
在此先感谢..