0
ScriptManager.RegisterStartupScript(UpdatePanel2, this.GetType(), "click", "alert('This Email address is already registered...');window.location.href ='test.aspx'", true);
通过使用上面的代码,我能够显示警报框,然后重定向到test.aspx页面。如何首先显示警报框,然后使用查询字符串重定向到任何页面?
但是问题来了,当我不得不与像转交地址查询字符串:
ScriptManager.RegisterStartupScript(UpdatePanel2, this.GetType(), "click", "alert('This Email address is already registered...');window.location.href ='test.aspx?WidgetID='" + Request.QueryString["WidgetID"] + "'&lan='" + readCookie() + "'&seeHome=true'", true);
在此先感谢
谢谢Ozgur kara我也解决了它:-)。 – Sunny 2012-04-10 06:48:16