This topic is locked

How to add line_no (custom field) in printer-friendly page?

3/9/2009 9:44:50 PM
ASPRunnerPro General questions
C
chengang author

I want add line_no (custom field) in printer-friendly page,What do? ThankYou!

Sergey Kornilov admin 3/11/2009
  1. Add BeforeProcessPrint event and use the following code:

Session("line_no")=1


2. Proceed to Printer-friendly page in Visual Editor, right click where you want to see this line number and choose "Insert ASP code snippet". Use the following code:

Response.Write Session("line_no")

Session("line_no") = Session("line_no") + 1