如何增加查询字符串的长度 [英] How to increase query string length

查看:154
本文介绍了如何增加查询字符串的长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何增加QueryString的长度.

Hi ALL,

I want to know how to increase the QueryString length.

thanks.

推荐答案

答案是-否.您不能更改查询字符串的长度.它取决于浏览器,无法在您的应用程序中进行更改.

http://www.boutell.com/newfaq/misc/urllength.html [ ^ ]
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[^]


您可以通过在< system.web>下的web.config文件中添加此设置来设置最大查询字符串长度.部分:

You can set the Maximum query string length by adding this setting in your web.config file under <system.web> section:

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



但是通常您不必这样做.尝试将查询字符串保持在默认范围内.

更新:尽管有此设置,最大长度仍取决于您使用的浏览器,例如aspnet_regiis提到的.



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.


这篇关于如何增加查询字符串的长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆