OnClientClick event for keeping track of prints?

Posted by Ram on Stack Overflow See other posts from Stack Overflow or by Ram
Published on 2011-02-11T15:22:44Z Indexed on 2011/02/11 15:25 UTC
Read the original article Hit count: 170

Filed under:
|
|

Hello,

I am trying to keep track of prints that are made for a page. The page has Print this page link. And the code for it is like below: This is written in .cs file as there are many conditions for displaying this. And i am appending here using String Builder.

sbOutput.AppendFormat("<td align=\"right\" valign=\"bottom\"><div style =\"float:right;text-align:right; valign:bottom;width:200px\"class=\"print_button notPrinted\"><a class=\"notPrinted\" href=\"#\" onclick=\"window.print();\">PRINT THIS COUPON </a><img src=\"images/print-icon-34x34.gif\" class=\"notPrinted\" align=\"absmiddle\" /></div> </td></tr></table>", couponid, Userid, locationid);

Do i have to use onclientclick or something else??

Thanks so much in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET