asp.net.ph

Skip Navigation Links

<httpRuntime> Section

ASP.NET Syntax   ASP.NET Configuration Sections


Configures ASP.NET HTTP runtime settings. This section can be declared at the machine, site, application, and subdirectory levels.

<httpRuntime
   useFullyQualifiedRedirectUrl = "true | false"
   maxRequestLength = "size in kbytes"
   executionTimeout = "seconds"
/>

The <httpRuntime> tag supports three attributes.

Attribute Option Description
useFullyQualifiedRedirectUrl     Indicates whether client-side redirects are fully qualified ( which is necessary for some mobile controls ). If not, relative redirects are instead sent to the client ( the default ).
    true Specifies that client-side redirects are fully qualified.
    false Specifies that client-side redirects are not fully qualified.
executionTimeout     Indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.
maxRequestLength     Indicates the maximum file upload size supported by ASP.NET. This limit can be used to prevent denial of service attacks caused by users posting large files to the server.

Syntax Example

The following example specifies HTTP runtime parameters for an ASP.NET application.

<configuration>
   <system.web>
      <httpRuntime maxRequestLength = "4000"
          useFullyQualifiedRedirectUrl = "true"
          executionTimeout = "45" />
    </system.web>
</configuration>
See Also

ASP.NET Configuration   HttpRuntimeSection Class



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note