更新时间:2023-02-12 11:46:18
.get( / someController / strMethod,{inStr:userInput}, function (data){
( #rData )。html的(数据);
textbox.textContent = data;
}
// 控制器方法
public string strMethod( String inStr){
// 操纵
返回 inStr
}
当userInput变得太长而我遇到请求URL太长错误时失败。你对我如何解决这个问题有什么建议吗?
谢谢
hi,
I'm making the following call in my mvc view:-
$.get("/someController/strMethod",{ inStr: userInput }, function (data) {
$("#rData").html(data);
textbox.textContent=data;
}
//controller method
public string strMethod(String inStr){
//manipulation
return inStr
}
This fails when userInput becomes too long and I run into the "Request URL Too Long" error. Do you have any suggestions on how i can work around this?
Thanks
.get("/someController/strMethod",{ inStr: userInput }, function (data) {
("#rData").html(data); textbox.textContent=data; }
//controller method public string strMethod(String inStr){ //manipulation return inStr }
This fails when userInput becomes too long and I run into the "Request URL Too Long" error. Do you have any suggestions on how i can work around this?
Thanks