Debian Codegraph @

mcs/class/System.Web/resources/DefaultErrorTemplate_CustomErrorDefault.html

raw
1 <table class="sampleCode"><tr><td><pre>
2 &lt;!-- Web.Config Configuration File --&gt;
3
4 &lt;configuration&gt;
5 &lt;system.web&gt;
6 &lt;customErrors mode=&quot;Off&quot;/&gt;
7 &lt;/system.web&gt;
8 &lt;/configuration&gt;</pre> </td></tr></table><br/>
9 <p><strong>Notes:</strong> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.</p>
10 <table class="sampleCode"><tr><td><pre>
11 &lt;!-- Web.Config Configuration File --&gt;
12
13 &lt;configuration&gt;
14 &lt;system.web&gt;
15 &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt;
16 &lt;/system.web&gt;
17 &lt;/configuration&gt;</pre></td></tr></table>