Click here to Skip to main content
15,868,141 members
Articles / Web Development / ASP.NET
Tip/Trick

Max Query String Length in URL - ASP.net 4.0

Rate me:
Please Sign up or sign in to vote.
4.25/5 (4 votes)
27 May 2010CPOL 48.2K   4   3
We can now set the URL querystring length in asp.net
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)


Written By
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions

 
QuestionWhat is the maximum Query string length can be set in config file Pin
raksha.dokania9-May-12 20:10
raksha.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?... Pin
jad052118-Sep-11 5:34
jad052118-Sep-11 5:34 
QuestionOK but where shoud I insert this tag? Pin
ferfr21-Jun-11 8:03
ferfr21-Jun-11 8: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.