title: include aspx file in other aspx file
body: <pre><code>&lt;% if (Session["desig"].ToString() == "Developer"){%&gt;
      &lt;td&gt;
          &lt;select name='zone' id="zone" onchange="showLoc(this.value,'mlodg_loc')"&gt; 
              &lt;option value="Select Zone"&gt;Select Zone&lt;/option&gt;
              &lt;option value="East"&gt;East&lt;/option&gt;
              &lt;option value="West"&gt;West&lt;/option&gt;
              &lt;option value="North"&gt;North&lt;/option&gt;
              &lt;option value="South1"&gt;South1&lt;/option&gt;
              &lt;option value="South2"&gt;South2&lt;/option&gt;
              &lt;option value="South3"&gt;South3&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;  
  &lt;%}
    else 
    {%&gt;
          &lt;td&gt;
            &lt;select name='zone' id="Select1" onchange="showLoc(this.value,'mlodg_loc')"&gt; 
                &lt;option value="Select Zone"&gt;Select Zone&lt;/option&gt;
                &lt;option value="&lt;%#Session["zone"]%&gt;"&gt;&lt;%# Session["zone"].ToString() %&gt;&lt;/option&gt;
            &lt;/select&gt;
          &lt;/td&gt;
  &lt;%}%&gt;
  </code></pre>
  
  <p>the code above is working fine if I am writing it directly, I tried to write this code in other file and in main file i did <code>Response.WriteFile("zone.aspx")</code></p>
  
  <p>How can i include it is there any way to include and also would like to know a better way to write the above statements.</p>
  
  <p>Thankyou</p>