locked
Need current HTML from current Render on "Submit" RRS feed

  • Question

  • User259735815 posted

    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... :-)

    Tuesday, February 23, 2021 3:11 PM

All replies

  • User-943250815 posted

    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.

    Tuesday, February 23, 2021 4:26 PM