<%@ Page Language="C#" %>
<%
if (Request["action"] == "edit" || Request["action"] == "new")
{
Response.Redirect("Edit.aspx");
}
%>
<!DOCTYPE html>
<html xmlns="http://w...content-available-to-author-only...3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<thead>
<tr>
<th>
<input type="text" placeholder="查詢姓名" />
</th>
<th>
<input type="text" placeholder="查詢職稱" />
</th>
<th colspan="4">
<button type="submit" name="actouin" value="query">查詢</button>
</th>
</tr>
<tr>
<th>姓名</th>
<th>職稱</th>
<th>生日</th>
<th>住址</th>
<th>薪資</th>
<th>
<button type="submit" name="action" value="new">新增</button></th>
</tr>
</thead>
<tbody>
<%for (int i = 0; i < 5; i++)
{ %>
<tr>
<td>姓名<%=i %></td>
<td>職稱<%=i %></td>
<td>生日<%=i %></td>
<td>住址<%=i %></td>
<td>薪資<%=i %></td>
<td>
<button type="submit" name="action" value="edit">編輯</button>
<button type="submit" name="action" value="delete">刪除</button></td>
</tr>
<%} %>
</tbody>
</table>
<table>
<tr>
<td><button type="submit" >第一頁</button></td>
<td><button type="submit" >上一頁</button></td>
<td><button type="submit" >下一頁</button></td>
<td><button type="submit" >最後頁</button></td>
</tr>
</table>
</div>
</form>
</body>
</html>