日期:2014-05-17 浏览次数:20546 次
<script type="text/javascript" > function manage() { var hdc = window.open("detail.aspx", "NewWindow", "height=200, width=400, top=400,left=900 toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"); } </script> <asp:TextBox ID="txtpunit" class="text-input small-input" runat="server" ></asp:TextBox> <img alt="detail" src="Images/png/link.png" onclick="manage()" height="16px" width="16px" />
string name = e.Row.Cells[1].Text.Trim(); e.Row.Attributes.Add("onclick ", " window.opener.document.getElementById('txtpunit').value="+name+ ";window.opener=null;window.close();");