M
M
Maxim2018-07-09 15:06:28
ASP.NET
Maxim, 2018-07-09 15:06:28

How to create asp.net template elements?

How to create a library with asp.net template elements?
What can I write in cshtml

...
@DisplayMap(...);
...

And this is where the map came in.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2018-07-09
@kttotto

There are many options for this:
1. Partial views. Simple, but the logic must be written inside the markup, or taken out.
2. Html - helpers.
3. Tag - helpers.
4. View Component. If something with more complex logic is required than just markup, then I personally use this method. You can read about it here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question