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?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nilesh ShahRank #42 · 34.2K reputationPosted Jun 20, 2017, 6:27 PM EDT
Nilesh ShahRank #42 · 34.2K reputationPosted Jun 21, 2017, 7:37 AM EDT
Sri Ram174 reputationPosted Jun 21, 2017, 5:51 AM EDT
If yes, can you please provide a good example?