Is there any way to run code in my asp.net c# web application if the print hotkey (ctrl+P) is pressed by the user?
I have an multiline asp:TextBox and I need to calculate the number of rows to generate the correct height of the textbox for the document. Atm I have an Print- Button, which works really fine, but I want to run the same code if the browser print function is used by the user.
Thank you in advance