Here is the scenario: I have two asp pages. a.aspx is layout and b.aspx is content. I want to display the contents of b.aspx inside a <div> on a.aspx. I know with PHP you can do it like so:
//a.php <html> <head> <title>test</title> </head> <body> <?PHP include 'b.php'; ?> </body> </html> //b.php <?PHP echo 'Content String'; ?> //result <html> <head> <title>test</title> </head> <body> Content String </body> </html>
Thanks!
Related Questions
No related questions found
Probably
Server.Executewill help.By the way, I do not recommend this approach. It’s just to show it can be done. Master pages and user controls are normally the way to go.