3
Answers

Inline code in MVC view

Photo of Sri Ram

Sri Ram

7y
1k
1
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)