我调用JQuery post方法是为了传递一个小于9的整数value.If输入值,调用post方法,但是如果我将更多的输入整数值作为输入,而不是调用我的控制器post方法。如果输入整数文本大,请告诉我为什么post方法不调用?
public ActionResult GetDetails(int id)
{
}
$.post("<%=Url.Action("GetDetails", "ActionController")%>", { id: Id }, function (html) {
Object = JSON.parse(html);
});发布于 2014-04-21 12:28:23
我想你超过了C#的整数长度
http://msdn.microsoft.com/en-us/library/5kzh1b5w.aspx
试一试字符串或Long,看看它是否正常工作。
如果它工作良好,那么问题与Int长度有关。
https://stackoverflow.com/questions/23196736
复制相似问题