0

Here is an example from some MVC application on dynamic class generation for menu items coded as <li> elements. I guess this is Razor syntax. How can I implement same functionality within my legacy ASP.NET Web Forms (4.6) application?

<li class="@Html.SomeFunction(SomeArgument)">

Thanks.

Megrez7
  • 1,423
  • 1
  • 15
  • 35

1 Answers1

0

In addition to Michael Liu answer I found this thread explaining things in more details ASP.NET <%= %> vs <%: %>

Community
  • 1
  • 1
Megrez7
  • 1,423
  • 1
  • 15
  • 35