1.You are using, in your list (method
GenerateNumbers()
), items of type
SelectListItem
, and this class does not have property named
ID_Post
also neither property
FNamePost
.
2.The solution is to use the exiting properties of this class:
Text
and
Value
. For details see in
MSDN[
^].