Get Rendered Source of a ASP.NET Page without HTTP Request??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

i need to get the rendered source of a asp.net page. it's not possible at
that point to create a http request. - how can i simulate a page load &
rendering lifecycle to get the source that would be posted to client...

thank you!

ingo
 
Hi ingo,

I don't have the code right now, but this would help:
http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

With a slight modification, you could apply this to the page. But note that
after you call Render once, calling it again will throw an exception - so you
will have to end your current page processing after you get the output HTML.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top