使用asp.net技术开发一个a.aspx和b.aspx。a页面显示数据列表,并且可以实现多项选择."发送"按钮使用服务器控件,选择相应的数据列表项,点击"发送"按钮传递ID参数到b页面接收
OnClientClick=<%# "OpenWindow('"+Eval("Id")+"', 700,250);return false;" %> <SCRIPT src="js/ui.mouse.js" type=text/javascript></SCRIPT> <SCRIPT src="js/ui.draggable.js" type=text/javascript></SCRIPT> <SCRIPT src="js/jquery.jwindow.js" type=text/javascript></SCRIPT> <script> function OpenWindow(id,width,height) { var p = document.getElementById("<%=hf_Id.ClientID %>").value; var url = "a.aspx?Id=" + id + "&pId=" + p; SetTitle(url); OpenJWindow('#openwin', url, width, height, EditClosed); } function SetTitle(url) { var obj = document.getElementById("winTitle"); if(url.lastIndexOf("Id") >0){ obj.innerHTML ="编辑"; return; } obj.innerHTML ="新增"; } function EditClosed(result) { if (result == "0") return; return false; }