Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ALL,

I want to know how to increase the QueryString length.

thanks.
Posted

The answer is - NO. You cannot change the querystring length. It depends on the browser and cannot be change from your application.

http://www.boutell.com/newfaq/misc/urllength.html[^]
 
Share this answer
 
Comments
I.explore.code 12-Oct-12 5:55am    
+5! I had forgotten that even the maxQueryStringLength property would be governed by the browser. So theoretically, you can still change it but it won't matter!
ridoy 12-Oct-12 6:18am    
+5
You can set the Maximum query string length by adding this setting in your web.config file under <system.web> section:

XML
<httpruntime maxrequestlength="16384" maxquerystringlength="99999999" />


But generally you should not have to do this. Try keeping your query strings within the default limits.

Update: Despite this setting the maximum length would be dependent on the browser you use, like aspnet_regiis has mentioned.
 
Share this answer
 
v2
Comments
bbirajdar 12-Oct-12 5:57am    
Agreed +5.. And thanks for the additional info in config...
ridoy 12-Oct-12 6:18am    
+5
I.explore.code 12-Oct-12 7:03am    
cheers guys! :)

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900