日期:2014-05-17  浏览次数:20423 次

怎么在保证当前页面不关的情况下跳出另外的指定页面?
比如我现在在a.aspx页面 我点其中的1个服务器控件按钮 就要跳出b.aspx并且前面的a页面不关
那么在按扭的点击事件中是怎么写这行代码的???

另外在问1下:URL传值的时候 如果传的是中文 在地址兰里会变成乱码 怎么解决


------解决方案--------------------
Response.Redirect()不会出现中文乱码的,前一个问题不知道,静候高手
------解决方案--------------------
Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.open('default10.aspx?id="+HttpUtility.UrlEncode("中文值")+"','null','width=500,height=400')",true);
------解决方案--------------------
传中文值,加HttpUtility.UrlEncode()
Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.open('b.aspx?id="+HttpUtility.UrlEncode("中文值")+"','null','width=500,height=400')",true);
------解决方案--------------------
探讨
传中文值,加HttpUtility.UrlEncode()
Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.open('b.aspx?id="+HttpUtility.UrlEncode("中文值")+"','null','width=500,height=400')",true);