fork download
  1. <%@ Page Language="C#" %>
  2. <%
  3. if (Request["action"] == "edit" || Request["action"] == "new")
  4. {
  5. Response.Redirect("Edit.aspx");
  6. }
  7.  
  8. %>
  9.  
  10. <!DOCTYPE html>
  11.  
  12. <html xmlns="http://w...content-available-to-author-only...3.org/1999/xhtml">
  13. <head runat="server">
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <title></title>
  16. </head>
  17. <body>
  18. <form id="form1" runat="server">
  19. <div>
  20. <table>
  21. <thead>
  22. <tr>
  23. <th>
  24. <input type="text" placeholder="查詢姓名" />
  25.  
  26. </th>
  27. <th>
  28. <input type="text" placeholder="查詢職稱" />
  29. </th>
  30. <th colspan="4">
  31. <button type="submit" name="actouin" value="query">查詢</button>
  32. </th>
  33. </tr>
  34. <tr>
  35. <th>姓名</th>
  36. <th>職稱</th>
  37. <th>生日</th>
  38. <th>住址</th>
  39. <th>薪資</th>
  40. <th>
  41. <button type="submit" name="action" value="new">新增</button></th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <%for (int i = 0; i < 5; i++)
  46. { %>
  47. <tr>
  48. <td>姓名<%=i %></td>
  49. <td>職稱<%=i %></td>
  50. <td>生日<%=i %></td>
  51. <td>住址<%=i %></td>
  52. <td>薪資<%=i %></td>
  53. <td>
  54. <button type="submit" name="action" value="edit">編輯</button>
  55. <button type="submit" name="action" value="delete">刪除</button></td>
  56. </tr>
  57. <%} %>
  58. </tbody>
  59. </table>
  60. <table>
  61. <tr>
  62. <td><button type="submit" >第一頁</button></td>
  63. <td><button type="submit" >上一頁</button></td>
  64. <td><button type="submit" >下一頁</button></td>
  65. <td><button type="submit" >最後頁</button></td>
  66. </tr>
  67. </table>
  68. </div>
  69. </form>
  70. </body>
  71. </html>
  72.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,0): error CS1525: Unexpected symbol `<'
prog.cs(1,4): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty