- 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