the javascript
136 <script language="javascript">
137 $(document).ready(function() {
138 $('#<%=Submit.ClientID %>').click( function() {
139 popitup('../Public/PrintRegister.aspx');
140 return true;
141 });
142 });
143 function popitup(url) {
144 newwindow = window.open(url, 'name', 'height=600,width=750');
145 if (window.focus) { newwindow.focus() }
146 return false;
147 }
148 </script>
the button
110 <asp:ImageButton ID="Submit" runat="server"
111 ImageUrl="<%$ Resources:Resource,ImageSubmitPrint %>"
112 AlternateText="<%$ Resources:Resource,ImageSubmitPrintAltText%>"
113 OnClick="Submit_Click" />
PrintRegister.aspx
9 <body class="" onLoad="self.print()">
10 <form id="form1" runat="server">
11 <div>
12 Print stuff here
13 </div>
14 </form>
15 </body>
No comments:
Post a Comment