Hi,
How to open a partial view defined in district controller using mvc5 using jquery dialog box, please help me out of this. Below is the code which i am using
HTML
<center>
<h2 class="headingfont">District</h2>
</center>
<div style="background-color:rgb(236,240,242);width:80%; margin:0px auto;box-shadow:5px 5px 5px 5px #888888;
border-radius:15px;padding-top:10px;padding-left:15px;padding-right:15px;padding-bottom:10px;">
<h4 style="color: blueviolet;float:left;">
@Html.ActionLink("Create New", "Create")
<button id="modal-opener">Open Dialog</button>
</h4>
@try
{
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.District_id)
</th>
<th>
@Html.DisplayNameFor(model => model.District_Name)
</th>
<th>
@Html.DisplayNameFor(model => model.District_NameKannada)
</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.District_id)
</td>
<td>
@Html.DisplayFor(modelItem => item.District_Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.District_NameKannada)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</td>
</tr>
}
</table>
}
catch (Exception)
{
}
</div>
<div id="dialog-modal" class="dialog">
</div>