M
Mark Rae
Hi,
VS.NET 2003 on WinXPPro + all latest service packs etc.
I have a totally standard WebForm wherein I need to include one of several
HTML files according to various parameters etc.
I'm trying to use an <asp:Literal /> control for this, and intend to modify
its Text property in the Page_Load event, but it's not working. The code I'm
using is as follows:
<table>
<tr>
<td>
<asp:Literal ID=litText Runat=server Text='<!--#include
file="history.htm"-->' />
</td>
</tr>
</table>
However, although the include appears to be correctly written out when I do
a View Source on the page, its contents are not displayed. If I hardcode the
include, it works perfectly, as follows:
<table>
<tr>
<td>
<!--#include file="history.htm"-->'
</td>
</tr>
</table>
Any assistance gratefully appreciated.
Best,
Mark Rae
VS.NET 2003 on WinXPPro + all latest service packs etc.
I have a totally standard WebForm wherein I need to include one of several
HTML files according to various parameters etc.
I'm trying to use an <asp:Literal /> control for this, and intend to modify
its Text property in the Page_Load event, but it's not working. The code I'm
using is as follows:
<table>
<tr>
<td>
<asp:Literal ID=litText Runat=server Text='<!--#include
file="history.htm"-->' />
</td>
</tr>
</table>
However, although the include appears to be correctly written out when I do
a View Source on the page, its contents are not displayed. If I hardcode the
include, it works perfectly, as follows:
<table>
<tr>
<td>
<!--#include file="history.htm"-->'
</td>
</tr>
</table>
Any assistance gratefully appreciated.
Best,
Mark Rae