Rendering a new page without openning it in a Window - II

H

HVG

My previous post on this didnt quite find a solution, so can we try again
please?

My senario is that from the codebehind in "page1.aspx", I wish to render
"page2.aspx"
(ie. a totally a different page) to html.
I'm after something like:
...
dim p2 as new Page(page2.aspx) ' <--- how to do this?
p2.RenderControl(htmlWriter);
...

But I cant see how to open/load a new webform page into a Page object so it
can be rendered.
I dont want to open "page2.aspx" in a new window as it is not an elegant
solution (tho it works).

Thanks again in advance.
Hugo
 

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top