增加请求网址字符串. [英] Increase Request url string.

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

问题描述

我有一个asp.net mvc 3项目实现,其中我将序列化的对象作为字符串发布到actionresult.在我的视图中使用@ Ajax.ActionLink帮助器方法.但是我收到以下错误,无法继续我的请求.
错误如下. 错误414请求URL太长."我将如何解决这个问题?在web.config或IIS7.0中增加请求url长度的正确方法是什么,或者将对象序列化为我的ActionResult方法的更好方法是什么?

Hi I have an asp.net mvc 3 project implementation where by I post a serialized object to an actionresult as a string. Using the @Ajax.ActionLink helper method in my view. However i receive the following error and it''s unable to continue with my request.
The error is as follows. "Error 414 Request URL is too long." How would I go about fixing this? What is the correct way to increase the Request url length in web.config or IIS7.0 or what would be a better way to serialize an object to my ActionResult method?

推荐答案

查询字符串的长度取决于浏览器.您不能从代码中增加它.

AFAIK的唯一解决方案是寻找另一种替代方法来实现该功能.

取决于各种浏览器,这里是限制

IE5.0 IE6.0 IE7.0-> 1024个字符
歌剧---> 4050个字符
NetScape6 ---> 2000个字符
NetScape4-> 30000个字符

http://www.boutell.com/newfaq/misc/urllength.html [ ^ ]
The query string length depends on browser. You cannot increase it from your code.

The only solution AFAIK is to find another alternative approach to achieve the functionality.

Depending upon various browsers here are the limits

IE5.0 IE6.0 IE7.0 -->1024 characters
Opera ---> 4050 characters
NetScape6 ---> 2000 characters
NetScape4 --> 30000 Characters

http://www.boutell.com/newfaq/misc/urllength.html[^]


这篇关于增加请求网址字符串.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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