日期:2014-05-17 浏览次数:20809 次
<asp:Button ID="Buttonid" runat="server" Text="ID" OnClientClick='vv(<%#Eval("id")%>)'/>
function vv(val)
{
var result=showModalDialog('RepleDetailed.aspx?id='+val,'RepleDetailed','dialogWidth:500px;dialogHeight:400px;center:yes;help:no;resizable:no;status:no');
}
------解决方案--------------------
querystring
------解决方案--------------------
function vv(id) {
var str = window.showModalDialog("RepleDetailed.aspx?id="+id+"&tmp="+new Date()+"", "RepleDetailed", "dialogWidth:500px;dialogHeight:400px;center:yes;help:no;resizable:no;status:no");
}
<a href="#" onclick='vv(<%#Eval("ID") %>)'>查看</a>