From 35f1514ca8346e0bc275439ff84267f0654d3475 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 2 Dec 2021 12:55:40 -0800 Subject: [PATCH] Adding an warning message. --- aspnetcore/mvc/models/model-binding.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspnetcore/mvc/models/model-binding.md b/aspnetcore/mvc/models/model-binding.md index f47b585daa..46f64eddb3 100644 --- a/aspnetcore/mvc/models/model-binding.md +++ b/aspnetcore/mvc/models/model-binding.md @@ -966,6 +966,8 @@ For targets that are collections of simple types, model binding looks for matche ``` [a]=1050&[b]=2000&index=a&index=b ``` + > [!WARNING] + > Since the model binding looks for the keyword `index` from a Form or Query string is strongly recommended to not use it as your action's parameter name to avoid unexpected behaviors. * The following format is supported only in form data: