js打开页面并传参 string a="4"; string url = "view.aspx?b="+a; string js = "window.open('url')"; this.ClientScript.RegisterClientScriptBlock(GetType(), "js", js, true); //this指页面对象为什么不能打开这个页面? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.ClientScript.RegisterClientScriptBlock(GetType(), "window.open('"+"view.aspx?b="+a+"')", js, true); //this指页面对象ps:建议lz找本基础的书,看看什么叫字符串 string js = "window.open(url)"; 没有看明白,不知道this.ClientScript.RegisterClientScriptBlock(GetType是什么 string a="4"; string url = "view.aspx?b="+a; string js = "window.open(\'"+url+"\')"; this.ClientScript.RegisterClientScriptBlock(GetType(), "js", js, true); //this指页面对象 string a="4";string url = "view.aspx?b="+a;string js = "window.open('"+url+"')";Page.ClientScript.RegisterStartupScript(this.GetType(), "winOpen", js, true); 关于保存用户名和密码问题 jquery.mobile page 刷新的问题 我已经给它跪了.... js页面跳转 请问如何向客户端推送通知消息? asp 取值问题,从javascript中 在线 求IE6、IE7、IE8通用的JS存取COOKIE方法 showModalDialog最小化 引入jquery插件后之前引入的插件方法变成undefined onClick事件的问题,估计不难,高手赐教 ^_^傻瓜问题:如何用正则限制一个值必须为数值型且在1-60的范围之间 一个面试中没回答出的问题 网页的w3c声明怎么会影响js代码
this.ClientScript.RegisterClientScriptBlock(GetType(), "window.open('"+"view.aspx?b="+a+"')", js, true); //this指页面对象
ps:建议lz找本基础的书,看看什么叫字符串
string url = "view.aspx?b="+a;
string js = "window.open(\'"+url+"\')";
this.ClientScript.RegisterClientScriptBlock(GetType(), "js", js, true); //this指页面对象
string url = "view.aspx?b="+a;
string js = "window.open('"+url+"')";
Page.ClientScript.RegisterStartupScript(this.GetType(), "winOpen", js, true);