This is a simple one, but I don't know what I'm doing incorrectly. I'm trying to print a web form (.aspx) using a server side button control. I have the following code on the aspx page on the Page_Load event.
If Not IsPostBack Then
Which should add onclick="PrintPage" to the client side html that is eventually generated.
In the source, I have the following in the html header.
I have viewed source on the html and it looks correct, but the page errors out whenever I click on the button. I have no idea why. Any ideas are appreciated. Thanks,