forum

Home / DeveloperSection / Forums / Hot to escape and unescape @ in mvc?

Hot to escape and unescape @ in mvc?

Anonymous User237229-Oct-2014
I am trying to make dynamic CSS import:

@foreach (string cssUrl in Model.Css)
{
    @@import url(@Url.Content(cssUrl));
}

However this does not work, the @import is escaped but @Url... should not be! What now?


Updated on 29-Oct-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By