Dynamically include an aspx page

Hai,

I want to dynamically include an aspx page into another aspx page.
I used Response.WriteFile() but the problem is since there are two page directives the FF displays the second page directive. DO we have any other alternate method.
plz help immediately.

regards,
krishna
[309 byte] By [ndkrishna_1981] at [2007-11-20 11:33:17]
# 1 Re: Dynamically include an aspx page
Use included files ( http://www.w3schools.com/asp/asp_incfiles.asp).
PeejAvery at 2007-11-9 11:54:06 >
# 2 Re: Dynamically include an aspx page
Use included files ( http://www.w3schools.com/asp/asp_incfiles.asp).
I also used include files but in that also the page directive is being displayed in FF. Is there any other method?.
ndkrishna_1981 at 2007-11-9 11:55:08 >
# 3 Re: Dynamically include an aspx page
Can you use a boolean variable to not fire the second directive?

1. at first page directive, set some variable to true

2. at second directive, check the variable, if that variable is true, don't include it.

3. if it is run without the first page, that variable won't be set, so it will run the directive.
PeejAvery at 2007-11-9 11:56:06 >