How to include one aspx page in another aspx page

i want to embed one aspx page in another aspx page with out using iframe and all.

I think there is an option in clasic asp <#include or so i dont know well for this.

is there anything similar to this in .net.

My need is i have aspx page which contains some some common controls needed different operation.

i need to embed this controls page in different forms for reuse. but different forms do different operations. so i think i frame will be difficult option.

my thinking is that if directly embed the page i can handle it from the parent pages very easily.

can any one give me some comments on this :-)
[663 byte] By [Vinod S] at [2007-11-20 7:10:13]
# 1 Re: How to include one aspx page in another aspx page
you can use a .ascx user control

create your re-usable stuff in a .ascx file. Then you can drop the ascx file into your pages.

Alternatively you can create a class library that you can re-use for different applications. For example we have a standard profile form. We build the entire thing in C# and compile it as a .dll, then add that dll as a reference to whatever project you need and you can re-use the assembly on each page you would like.

hth,
mcm
mcmcom at 2007-11-9 11:53:02 >