ASP.NET WEB表單aspx 展示使用者列表

來源:互聯網
上載者:User

標籤:send   pid   div   padding   資料   apt   public   use   void   

 1 <body> 2     <table> 3     <caption>使用者資訊表</caption> 4         <tr> 5             <td colspan="5" style="text-align:left;padding-left:10px;" title="使用者資料添加"><a href="userAdd.htm">使用者資料添加</a></td> 6         </tr> 7         <tr> 8             <th>EmpId</th> 9             <th>EmpName</th>10             <th>EmpAge</th>11             <th>DelFlag</th>12             <th>管理</th>13         </tr>14         <%foreach (Employee rows in Employee_list){ %>15         <tr>16             <td><%=rows.EmpId %></td>17             <td><%=rows.EmpName %></td>18             <td><%=rows.EmpAge %></td>19             <td><%=rows.DelFlag %></td>20             <td>修改|<a href="Delete.aspx?id=<%=rows.EmpId %>" onclick="return Del()">刪除</a>|瀏覽</td>21         </tr>22         <%} %>23     </table>24 </body>25 </html>
 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using CZBK.TestProject.Model; 8  9 namespace CZBK.TestProject.WebApp.admin10 {11     public partial class UserList : System.Web.UI.Page12     {13         public List<Employee> Employee_list { get; set; }14         protected void Page_Load(object sender, EventArgs e)15         {16             BLL.EmployeeService emp = new BLL.EmployeeService();17             List<Employee> list = emp.GetEntityList();18             Employee_list = list;19         }20     }21 }

 

ASP.NET WEB表單aspx 展示使用者列表

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.