标签: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.admin 10 { 11 public partial class UserList : System.Web.UI.Page 12 { 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 }
标签:send pid div padding 数据 apt public use void
原文地址:http://www.cnblogs.com/zhaodachao/p/6111798.html