I have an aspx page that uses several server-side includes to display the header and footer. The code I was using to do that is like this:
<div id="header" runat="server">
<!--#include virtual="/includes/server_header_es.aspx" -->
</div>
Now I'd like to be able to switch that include to another if a certain condition changes. I have codebehind that will test for the condition:
protected void Page_Load(object sender, EventArgs e)
{
if (User.Language == 1)
{
this.header. (--what to use to change to a different include? an event handler?)
}
I've tried several things such as header.InnerHtml, and header.Load, but I'm not getting it to work. Any suggestions?
Thanks in advance.
Go to the complete details ...