Sri Ram

Sri Ram

  • 1.6k
  • 173
  • 99.9k

Inline code in MVC view

Jun 20 2017 9:40 PM
I have seen lot of developers write in-line code in view pages(.cshtml). It reminds the classic asp code style.
In the MVC view, if we have lot of if-else conditions how to avoid that?
Is it really a bad idea to have in-line codes in view? 

Answers (3)