Sri Ram

Sri Ram

  • 1.5k
  • 170
  • 96.6k

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)