This topic is locked

How to add line number on printer-friendly page?

3/11/2009 5:52:39 PM
ASPRunnerPro Tips and tricks
admin
  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