i'd like to include aspx page to aspx page

U

uto

i'd like to include aspx page to aspx page
not ascx page
in this case how can i attach aspx page into aspx page?
i think there are some way to implement this...
LoadTemplate may be work or not?
 
M

Michael Hamrah

Server.execute may work, but has some limitations. You can also try
instantiating the page in the codebehind, and calling
render(HtmlTextWriter writer). This renders the control (in this case
page) to an HtmlTextWriter, which you can then convert to a string and
place in a literal control. Of course, this isn't the same as a good
old "include" and has some limitations of it's own.

Anyway, calling an aspx page within an aspx page will require two form
tags to appear within eachother- this really isn't a good idea at all.
Watch out and good luck.
 

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,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top