Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Overriding Render method to get the html of the page

Overriding Render method to get the html of the page

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    K Safvi
    wrote on last edited by
    #1

    hello, I am overriding the render method of the page to get the html of a page this is infact a report. It works okay for the first time but i need to create the report multiple time. When the below code is called for second time to capture the newly created report, it gives the error '"A page can have only one server-side Form tag"'. Following the code. Dim sb As New System.Text.StringBuilder Dim sw As New System.IO.StringWriter(sb) Dim hWriter As New HtmlTextWriter(sw) MyBase.Render(hWriter) ' *** store to a string Dim PageResult As String = sb.ToString() ' *** Write it back to the server writer.Write(PageResult) str = PageResult Thanks, Safvi

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups