c# DataList1_ItemCommand里有opennewwin方法
如题,DataList1_ItemCommand里有一个opennewwin方法,是弹出一个新窗口的,opennewwin大致是这么写的publicvoidopenNew...
如题,DataList1_ItemCommand里有一个opennewwin方法,是弹出一个新窗口的,opennewwin大致是这么写的
public void openNewWin(string URL, string winName, int winWidth, int winHeight, bool isBack, string backInfo)
{
ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>openNewWin('" + URL + "','" + winName + "'," + winWidth + "," + winHeight + "," + (isBack ? "true" : "false") + "," + (string.IsNullOrEmpty(backInfo) ? "null" : backInfo) + ");</script>");
return;
}
但是程序是执行了这句代码的,但就是不弹出窗口,怎么破,求大神指教!,谢谢啦 展开
public void openNewWin(string URL, string winName, int winWidth, int winHeight, bool isBack, string backInfo)
{
ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>openNewWin('" + URL + "','" + winName + "'," + winWidth + "," + winHeight + "," + (isBack ? "true" : "false") + "," + (string.IsNullOrEmpty(backInfo) ? "null" : backInfo) + ");</script>");
return;
}
但是程序是执行了这句代码的,但就是不弹出窗口,怎么破,求大神指教!,谢谢啦 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询