I’ve got an exception throwing at this line, and can’t figure out why…maybe someone else can spot it
<img src="@{Model.Image != null ? Model.Image.FileName : "";}" width="200px" id="ImagePreview"/>
The exception I’m getting is:
error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
You need to use the expression
(explicit)code block style for that expression:see the gu’s post