2021-06-10 15:48:05 +10:00
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
Layout = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
2021-06-10 18:05:55 +10:00
|
|
|
|
<title>Page Title</title>
|
2021-06-10 15:48:05 +10:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2021-06-10 18:05:55 +10:00
|
|
|
|
@{
|
|
|
|
|
var employee = ViewData["Employee"]
|
|
|
|
|
as FirstMVCDemo.Models.Employee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<h2>@ViewData["Header"]</h2>
|
|
|
|
|
<table style="font-family:Arial">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Employee ID:</td>
|
|
|
|
|
<td>@employee.EmployeeId</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Name:</td>
|
|
|
|
|
<td>@employee.Name</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Gender:</td>
|
|
|
|
|
<td>@employee.Gender</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>City:</td>
|
|
|
|
|
<td>@employee.City</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Salary:</td>
|
|
|
|
|
<td>@employee.Salary</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Address:</td>
|
|
|
|
|
<td>@employee.Address</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
2021-06-10 15:48:05 +10:00
|
|
|
|
<div>
|
|
|
|
|
<h1>Index View Coming From Views/Home Folder</h1>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|