1个按钮 要先执行CS里的事件 然后在执行JS里的事件
1个按钮 要先执行CS里的事件 然后在执行JS里的事件
我把按钮放在DATALIST控件里面了!~~~~ 点击按钮取出控件里面绑定的ID给LABEL6 然后在传到JS里
CS代码
string id = ((Label)e.Item.FindControl("Label6")).Text.ToString(); 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');