Hello
I am new to the whole MVC/Razor style of coding.
I am trying to pass a string to a cshtml file. The string is html. how can I do this. Here is the code -
AndCode:@{ ViewBag.Title = Model.Title; } @{ @Model.CVBuilderInformation }
I did it this way as the above text is not always shown. But when I run it puts the text out as a string, not html. Can you do that?Code:model.CVBuilderInformation = "<p>The Personal Professional Profile can be used to record information about your career, your education and your professional development and achievements in both work and personal life.</p> <a href="http://www.soemthing.co.uk" target="_blank">www.something.co.uk</a>
Thanks
Kev.




Reply With Quote