Click here to Skip to main content
Click here to Skip to main content

Max Query String Length in URL - ASP.net 4.0

By , 27 May 2010
 
We can now change querystring length for server side request using following tag in web.config file.
 
<httpRuntime maxQueryStringLength="260" maxRequestLength="2048"/>

License

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

About the Author

santosh poojari
Technical Lead
India India
Member
He is presently working as tech arch in one of the leading IT company.He has total 10 years of experience in C#.net. He is a B.E graduate in Computers from Bombay University.
 
Most of his experiences are in designing architect for end to end solutions. His interest areas are WCF,Spring.net,Architecture- Model View Presenter,UML,Webservice,Performance Engineering/tuning,Design patterns,Generics,Enterprise Library,Regular expressions,Silverlight and WWF.
www.santoshpoojari.blogspot.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionWhat is the maximum Query string length can be set in config filememberraksha.dokania9 May '12 - 20:10 
Hi,
 
I added this in web config. Upto some extend, it is working fine. Actually i need more than 12000 character.
 
I dont know if this is the best solution to use query string. I am using ajax call. So dont know what all can be the other solution.
 
PLease let me know if there is any other way to pass my data to server side using ajax call.
Generalplease can you tell me where exactly in the web.config file?...memberjad052118 Sep '11 - 5:34 
please can you tell me where exactly in the web.config file? i get a runtime error when i added that tag between and either just after or just before
it says : Unrecognized configuration section httpRuntime
QuestionOK but where shoud I insert this tag?memberferfr21 Jun '11 - 8:03 
I guess it should be placed under the System.Web section, right??

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 28 May 2010
Article Copyright 2010 by santosh poojari
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid