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
# 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?.
# 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.