Click here to Skip to main content
15,904,348 members

Comments by Member 13058758 (Top 34 by date)

Member 13058758 8-Jul-20 13:51pm View    
i return pass IEnumerable list in razor view
Member 13058758 8-Jul-20 9:26am View    
model in razor view doesn't recognize to this items

public Nullable<decimal> Food { get; set; }
public Nullable<decimal> Drink{ get; set; }
public Nullable<decimal> Other { get; set; }

that exist in sqlview how to define it in controller?
Member 13058758 14-May-20 4:17am View    
Thanks It done please make it as solution
Member 13058758 14-May-20 4:15am View    
Deleted
i found errors with all Jquery links what can i do now ?
Member 13058758 13-May-20 8:05am View    
yup you need a partial view html code


@model IEnumerable<fzpc.dal.main>





@model IEnumerable<FZPC.DAL.Main>




<table class="table table-bordered text-center">
    <tr style=" background-color:#333333; color:white; text-align:center">
        <th></th>
        <th>
            رقم الشهادة الجمركية
        </th>

        <th>
            رقم اللوحة
        </th>

        <th>
            رقم الشاسيه
        </th>

        <th>
            سنة الصنع
        </th>

        <th>
            موديل السيارة
        </th>

        <th>
            ماركة السيارة
        </th>

        <th>
            الأسم
        </th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @*@Html.ActionLink("Edit", "Edit", new { id = item.id }) |*@
                @Html.ActionLink(" ", "Details", null, new { id = item.id, }, new { @class = "fas fa-search-plus mr-2" })
                @*|
                    @Html.ActionLink("Delete", "Delete", new { id = item.id })*@
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CustomsCertNum)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.NumPlate)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.ChassisNO)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.ModelYear)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.CarModel)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.CarBrand)
            </td>

            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
        </tr>
    }

</table>