i have two EditorTemplates
string.cshtml
int.cshtml
when i write EditorFor a string or an int they both choose string.cshtml
and when i even remove string.cshtml , the EditorFor for an int dont choose int.cshtml
EditorTemplates use CLR typenames, not C# keywords.
You need to create Int32.cshtml.
Your int template's name should be Int32.cshtml
The string.cshtml works because there is a CLR Type in System Namespace called String ;)
Your templates names must be called like the type you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With