title: How to set start page in Web.config file in asp.net c#
body: <p>How to set start page using <code>Web.config</code> file. I have tried this code</p>
  <pre><code>&lt;system.webServer&gt;
          &lt;defaultDocument enabled=&quot;true&quot;&gt;
              &lt;files&gt;
                  &lt;clear /&gt;
                  &lt;add value=&quot;index.aspx&quot;/&gt;
              &lt;/files&gt;
          &lt;/defaultDocument&gt;
      &lt;/system.webServer&gt;
  </code></pre>
  <p>But it did not work for me.  I have set start page by right click on page in solution explorer then choose option set as start page but how can I do it programmatically?</p>