Click here to Skip to main content
13,455,188 members (56,967 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 17 Feb 2012

Set your maxUrlLength in ASP.NET MVC

, 18 Feb 2012
Rate this:
Please Sign up or sign in to vote.
If you want to increase or decrease your maxUrlLength in ASP.NET to limit the max URL for your site, you can do the following:

In your main Web.Config file under the system.web tag, add a node called httpRuntime and add a property called maxUrlLength, e.g.;
<httpRuntime maxUrlLength="22" />

Note: 22 is just an example number.
For more options, visit the link below:[^]


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Dean Oliver
Software Developer BBD Johannesburg
South Africa South Africa
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04-2016 | 2.8.180321.1 | Last Updated 18 Feb 2012
Article Copyright 2012 by Dean Oliver
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid