How to add attributes with hyphen and colon to Html Helper methods in razor? (vuejs syntax)
You could use a Dictionary
for htmlAttributes
like this:
@Html.TextBoxFor(x => x.ItnScanCaseCode, htmlAttributes: new Dictionary<string, object> {
{ "v-on:click", "onchangeevent()" },
{ "id", "txtid" }
})