Skip to content

Instantly share code, notes, and snippets.

@A2H111
Created October 22, 2017 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save A2H111/31766690dd39e0430223cce7bece418b to your computer and use it in GitHub Desktop.
Save A2H111/31766690dd39e0430223cce7bece418b to your computer and use it in GitHub Desktop.
@page "{id:int}"
@model NetCoreRazorPageApp.Pages.Employee.DeletePageModel
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>DeletePage</title>
</head>
<body>
<h4>Delete Employee Record</h4>
<h5>Are you sure you want to delete this?</h5>
<table class="table table-bordered" style="width:250px">
<tbody>
<tr>
<td>
<label for="txtEmpName">Employee Name :</label>
</td>
<td>
@Html.DisplayFor(model => model.Employee.EmployeeName)
</td>
</tr>
<tr>
<td><label for="txtEmpName">Employee Address :</label></td>
<td>@Html.DisplayFor(model => model.Employee.EmployeeAddress)</td>
</tr>
</tbody>
</table>
<form method="post">
<table>
<tbody>
<tr>
<td>
<input asp-for="Employee.EmployeeID" type="hidden" />
</td>
<td colspan="2"><input id="Button1" type="submit" value="Delete" class="btn btn-primary" /> | <a asp-page="./Index" class="btn btn-primary">Cancel</a></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment