Below is the code snippet showing the expanding of allowable URL size in ASP.NET 4.0.
<httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" />
You have to modify the maxRequestPathLength inorder to allow the longer or shorter paths, i.e., where the URL does not includes the protocol, servername, and the querystring.
Inorder to allow longer or shorter querystrings, you have to modify the value of the maxQueryStringLength attribute.
Asked In: Many Interviews |