1个按钮 要先执行CS里的事件 然后在执行JS里的事件我把按钮放在DATALIST控件里面了!~~~~ 点击按钮取出控件里面绑定的ID给LABEL6 然后在传到JS里
CS代码string id = ((Label)e.Item.FindControl("Label6")).Text.ToString();JS代码 var id=document.getElementById("Label6").innerHTML;
alert(id)
var str=window.showModalDialog("http://localhost:1330/ChinaSoftware/vote/shu.aspx?ttt="+id,"",'edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;dialogHeight:200px;dialogWidth:300px'); 我应该怎么做?后者谁告诉我一下 把一个网页的宽度 和 高度 这样变小?就是把一个网页变成小窗口??? 谢谢了 急 星期6还加班呢
CS代码string id = ((Label)e.Item.FindControl("Label6")).Text.ToString();JS代码 var id=document.getElementById("Label6").innerHTML;
alert(id)
var str=window.showModalDialog("http://localhost:1330/ChinaSoftware/vote/shu.aspx?ttt="+id,"",'edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;dialogHeight:200px;dialogWidth:300px'); 我应该怎么做?后者谁告诉我一下 把一个网页的宽度 和 高度 这样变小?就是把一个网页变成小窗口??? 谢谢了 急 星期6还加班呢
把按钮放在UpdatePanel当中,执行完cs中的代码以后,
使用ScriptManager.RegisterStartupScript()为UpdatePanel注册脚本
我就是想弹出一个窗口但是我点击按钮的时候必须先把数据库里的值取出来
然后在传到那个窗口里面
http://blog.csdn.net/net_lover/archive/2007/09/11/1780289.aspx
或者
Page.ClientScript.RegisterStartupScript(this.GetType(), "begin", " <script> alert('ok') </script> ");