Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to show a PartialView with Model "With null model"

$
0
0

Hi all,

I have a PartialView which I want to show in a View like the below code and I want to show it empty at the load of the page (View).

Then using Jquery I will call it again and fill it when ever I need.

Could you help me please without having error that Model is not exist or null or something.

@model IQueryable<EvrakaCore.Models.SevkedilenLablar><tbody>
    @foreach (var item in Model)
    {<tr id=@item.SevkedilenLablarId><td>
                @Html.DisplayFor(modelItem => item.Birimler.BiriminKisaAdi)</td><td><button name="LabSilBtn" class="btn btn-outline-primary float-sm-right">Sil</button></td></tr>
    }</tbody>

I have 


Viewing all articles
Browse latest Browse all 1698

Trending Articles