adsense

Saturday, May 30, 2020

ASP.NET MVC using data attributes in html helper classes

You can use data  attributes in html helper classes as displayed below.

@Html.TextBoxFor(model=> model.PostCode, new { data_validate = "true" })

Cheers,
Samitha

No comments:

Post a Comment