Last post Feb 23, 2021 04:26 PM by jzero
Feb 23, 2021 03:11 PM|dl0dth69|LINK
I need a way with VB.NET (or something else, perhaps, on the same page), to get all the current HTML, including the form data that is currently filled out and rendered on the current web browser instance displaying my ASP page. When I say render, I mean
the literal HTML that is produced for the browser to render, including all form data that is filled out.
How is this done as a one-off from a Submit button? Since I'm trying to create a PDF file as a "paper trail", I need the full HTML source to the current render state.
Thank you in advance... :-)
Feb 23, 2021 04:26 PM|jzero|LINK
Sounds you want a printed filled form, but generate a PDF from HTML is not always formatted as expected.
Talking about Webforms, I´m not sure if you can get HTML code at code-behind, perhaps exploring properties of System.Web.UI.Page.
If you wanna go ahead with HTML to PDF, you can collect all data and generate your HTML string on code-behind then use it to make your PDF file.