Home > Software design >  How to recognize inputs from EditorFor
How to recognize inputs from EditorFor

Time:03-24

I have a 4 inputs for Title. The are in diffrent language. How can i recognize which is which and how can I refer to them at Controller?

@Html.EditorFor(i => i.Title, "StringHorizontal", "EN")

@Html.EditorFor(i => i.Title, "StringHorizontal", "UK")

@Html.EditorFor(i => i.Title, "StringHorizontal", "DE")

@Html.EditorFor(i => i.Title, "StringHorizontal", "CZ")

I've tried to add names for input, but it didnt worked

Result Result2 enter image description here enter image description here

Is there a page named "StringHorizontal" in ~/views/shared/EditorTemplates floder?

Could you explain your requirement more clearly or show more details of your codes,so that we could give more suggestions.

  • Related