Click here to Skip to main content
13,355,538 members (74,473 online)
Click here to Skip to main content
Add your own
alternative version


4 bookmarked
Posted 28 May 2010

Max Query String Length in URL - 4.0

, 28 May 2010
Rate this:
Please Sign up or sign in to vote.
We can now set the URL querystring length in
We can now change querystring length for server side request using following tag in web.config file.

<httpRuntime maxQueryStringLength="260" maxRequestLength="2048"/>


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
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!

You may also be interested in...

Comments and Discussions

QuestionWhat is the maximum Query string length can be set in config file Pin
raksha.dokania9-May-12 21:10
memberraksha.dokania9-May-12 21:10 

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?... Pin
jad052118-Sep-11 6:34
memberjad052118-Sep-11 6:34 
QuestionOK but where shoud I insert this tag? Pin
ferfr21-Jun-11 9:03
memberferfr21-Jun-11 9:03 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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