I am working in asp.net mvc5 view , how to know if id is written in the textbox , here ,How to know if Id is written here and save that value for another use ??? How to know if id is already set in the textbox ?I TRIED THIS BUT ITS NOT WORKING @if (Html.EditorFor(model => model.Id) !=null) { SHOW id}
@if (!string.IsNullOrEmpty(Model.Id)) { @Html.ActionLink("Details1", "Contents", new { id = Model.Id }) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)