本文介绍了ASP.NET图表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户点击图表时如何打开新的窗口页面?
谢谢..
how to open a new window page when user clicked on the graph?
Thanks..
推荐答案
string url = "window_page";
string fullURL = "window.open('" + url + "' );";
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);
改进的解决方案
Improved Solution
string fullURL = "window.open(' http://www.google.de ' , 'width=1003,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no' );";
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);
Response.Write("<script>");
Response.Write("window.open('somepage.aspx','_blank')");
Response.Write("</script>");
-KR
-KR
这篇关于ASP.NET图表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!