forum

home / developersection / forums / hot to escape and unescape @ in mvc?

Hot to escape and unescape @ in mvc?

Anonymous User 2581 29-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 !


Message
Can you answer this question?

Answer

1 Answers

Liked By