在cs代码中实现新窗口(_blank)中打开
在cs代码中实现新窗口(_blank)中打开:
string ID = ***;
string s = String.Format("<script>window.open('yoururl.aspx?ID=
{0}','_blank');</script>",ID);
Response.Write(s);
//或者
string s = String.Format("<script>window.open('yoururl.aspx?ID=
{0}');</script>",ID);
Response.Write(s);
参数(ID)和URL就可以根据自己定制;
string s = String.Format("<script>window.open('yoururl.aspx?ID=
{0}','_blank');</script>",ID);
Response.Write(s);
//或者
string s = String.Format("<script>window.open('yoururl.aspx?ID=
{0}');</script>",ID);
Response.Write(s);