私がエラーを持っている:ときに私はのでパラメータ辞書は、パラメータ「電話」のヌルエントリが含まれてい
"The parameters dictionary contains a null entry for parameter 'Phone' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Order(Int32[], Int32[], System.String, Int32, System.String, Int32, System.String, System.String, System.String, System.String)' in 'Shop.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter."
これは、エラーがある場合、私は理解できない私のコントローラ
public ActionResult Order(int[] OrderProductCount, int[] OrderProductID, string AllName, int Phone, string Region, int MailIndex, string Email, string City, string MailType, string Additional=null)
{
return View("Order");
}
ですフォームのメソッド属性を取得するには、それが持っていた電話の値:
http://localhost:2420/Order?AllName=asdasd&Email=asdsaasd%40asd&City=sdafsdaf&Region=dsfasda&Phone=380983050430&MailIndex=100005&Additional=&MailType=%D0%98%D0%BD%D0%A2%D0%B0%D0%B9%D0%BC&OrderProductID=53&OrderProductCount=32&OrderProductID=52&OrderProductCount=12
あなたのコントローラに 'Order'アクションを呼び出すコードを表示できますか? – Supersnake
あなたはコントローラーのChaning Phone to Stringを試してみましたか? –