I have an .aspx page that have to mimic this situation: in certain <div>s based on a code-behind test I want to inject some <I> tags (one, ore more consecutively) and to assign various CSS classes to them.
The code behind is like this:
switch (response.currently.icon.ToString())
{
case ("clear-day"):
//do something
//< i class="sun"></i>
break;
case ("partly-cloudy-day"):
//do something
//<i class="cloud"></i>
//< i class="cloud windy"></i>
break;
case ("rain"):
//do something
//<i class="sun"></i>
//<i class="cloud"></i>
...
Go to the complete details ...