0

I am trying to add a session variable to html markup using MVC Razor, I tried this:

<div class="panel-body">
<p>It might suprise you to know that you can upgrade from @Session("CurrentProvider") to blah blah....</p>
</div>

I tried wrapping it in code tags and all sorts. How can I fix this?

durron597
  • 31,968
  • 17
  • 99
  • 158
gchq
  • 1,603
  • 2
  • 27
  • 52

1 Answers1

0

Seems the answer is to append with ToString

@Session("CurrentProvider").ToString

gchq
  • 1,603
  • 2
  • 27
  • 52