I’m trying to do something like the following:
if field3 = 1, html.labelfor(field2)
else html.labelfor(field1)
What’s the best way to do this? Should I have logic in my viewModel, or can I just throw some code into the view to perform the check?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can you explain why you want to do this?
But here goes: