Hi,
I am getting the error while i am call the Partial View.
Expected a "{" but found a "<". Block statements must be enclosed in "{" and "}". You cannot use single-statement control-flow statements in CSHTML pages.
my partial view Code is
"0" cellspacing="0" id="SearchResultTable" class="table table-striped table-bordered nowrap" style="width:100%">
- @foreach (var col in Model.Columns)
- {
- if (jsonString != string.Empty)
- {
- jsonString = jsonString + "$$$";
- }
- jsonString = jsonString + col.Name;
@col.DisplayName - }
- @if (Model.IsEdit)
Edit - @if (Model.IsDelete)
Delete - @if (Model.IsView)
View - @if (Model.IsPrint)
Print
Thiyagarajan EPosted Nov 15, 2018, 5:49 AM