In what way do you expand the size of allowable URL size in ASP.NET 4.0 ?

 Posted by Bharathi Cherukuri on 8/29/2012 | Category: ASP.NET Interview questions | Views: 2813 | Points: 40

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 | Alert Moderator 

Comments or Responses

Login to post response