L
Larry
Hi,
I need a method to dynamically include a server side include in my
asp.net page. The problem is, the include file contains asp.net
controls, and I can't find a way to get the controls to render.
HISTORY
I have an active website. I have about 100 include files that are just
html text. In .aspx page, I have the following:
<% response.writefile(fcnGetInclude()) %>
Where fcnGetInclude is a function that tests the current querystring
and dynamically selects an inlcude file to write from.
Works great.
CURRENT SITUATION
Now, each of those 100 include files has an asp.net control in it.
Under the above scenario the control doesn't render because it's being
written to the page too late.
I need a way to dynamically select and include a server side include
file before the page renders on the server.
I'm open to using a database read instead of the include files, but I
believe I'll run into the same issue. The database read needs to be
done before the page is rendered on the server, so I think page_load
and page_init are too late.
Can anyone help me out?
I need a method to dynamically include a server side include in my
asp.net page. The problem is, the include file contains asp.net
controls, and I can't find a way to get the controls to render.
HISTORY
I have an active website. I have about 100 include files that are just
html text. In .aspx page, I have the following:
<% response.writefile(fcnGetInclude()) %>
Where fcnGetInclude is a function that tests the current querystring
and dynamically selects an inlcude file to write from.
Works great.
CURRENT SITUATION
Now, each of those 100 include files has an asp.net control in it.
Under the above scenario the control doesn't render because it's being
written to the page too late.
I need a way to dynamically select and include a server side include
file before the page renders on the server.
I'm open to using a database read instead of the include files, but I
believe I'll run into the same issue. The database read needs to be
done before the page is rendered on the server, so I think page_load
and page_init are too late.
Can anyone help me out?