So basically I'm in a situation like this. Somewhere I have stored some razor code, and once in a while I have to render that to the user. I could not find anything on the web to cope with situation like this. I mean rendering a view from a "razor string", So I did this. Every time I need to render that view. I create a temporary file, I write the razor code into that file than I use
RenderPartial to render It and that I delete it. problem with this approach is that it's too slow compared to other pages. Yeah best way would be to avoid a situation like this but for now I can't do that, befacuse that would need to much re factoring. Any help would be appreciated, thanks in advance.