I have a custom editor for the pop-up and everything is working fine. However I would like to hide or show a a section depending on a value from the model. However, these model values are always NULL.
for example Model.QuoteId is always null
@using (Html.BeginForm(Model))
{
if (Model.QuoteId == null)
{
<fieldset id="selector">
foo
</fieldset>
}
I do get values for this.
@Html.EditorFor(model => model.Amount)
thank you!
for example Model.QuoteId is always null
@using (Html.BeginForm(Model))
{
if (Model.QuoteId == null)
{
<fieldset id="selector">
foo
</fieldset>
}
}
I do get values for this.
@Html.EditorFor(model => model.Amount)
thank you!