using asp.net code in a asp.net file (Response.write by another aspx)
<p>i have a asp.net file called header.aspx and which is a part of index.aspx, here is the code of the index.aspx:</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %&gt;

    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head runat="server"&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;% Response.WriteFile("header.aspx"); %&gt;
    &lt;% Response.WriteFile("body.aspx"); %&gt;
    &lt;form runat="server"&gt;
    &lt;%= content %&gt;
    &lt;/form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<p>in header.aspx :</p>

<pre><code>        &lt;style type="text/css"&gt;
        .style1
        {
            width: 100%;
        }
    &lt;/style&gt;
    &lt;form id="form1" runat="server"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" class="style1"&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;img src="images/Banner.jpg" width="990" height="150" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;img src="images/HomeTopMenu.jpg" width="140" height="30" /&gt;&lt;img src="images/AboutTopMenu.jpg" width="140" height="30" /&gt;&lt;img src="images/PublicationTopMenu.jpg" width="195" height="30" /&gt;&lt;img src="images/FormTopMenu.jpg" width="205" height="30" /&gt;&lt;img src="images/LinkTopMenu.jpg" width="160" height="30" /&gt;&lt;img src="images/ContactTopMenu.jpg" width="150" height="30" /&gt;
            &lt;% Response.Write("abc");  %&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
    &lt;/form&gt;
</code></pre>

<p>when i run the index.aspx file, the &lt;% Response.Write("abc");  %> is displayed as plain text... </p>

<p>how to use asp.net code in header.aspx?</p>

<p>thanks</p>
