What is NopLabelFor

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 năm cách đây
Hello,

I'm using nopCommerce 3.80 with source in Visual Studio 2015.

Is there a document that explains what these are and how to use them?

@Html.NopLabelFor
@Html.NopEditorFor
@Html.ValidationMessageFor


Or, do I need to study the code to figure it out?

Thanks,
Tony
7 năm cách đây
They are custom HTML helpers.

An HTML Helper is just a method that returns a string. The string can represent any type of content that you want. For example, you can use HTML Helpers to render standard HTML tags like HTML <input> and <img> tags. You also can use HTML Helpers to render more complex content such as a tab strip or an HTML table of database data.

https://www.asp.net/mvc/overview/older-versions-1/views/creating-custom-html-helpers-cs
7 năm cách đây
Thanks for your help.

That article is little old, but it did explain a lot and I read other articles about that subject.

Thanks,
Tony
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.