<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default1.aspx.cs" Inherits="Default1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.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>
<%-- index:<% = iIndex %>,count:<% =dt.Rows.Count %><br />--%>
<% for (int i = 0; i < dt.Rows.Count; i++){%>
<% = dt.Rows[i][0] %> <br />
<input type ="button " value = "del<% =i %>" />
<%} %>
<%-- index:<% = index %>; 相当于 Console.WriteLine("Console.WriteLine{0}",index)--%>
</div>
</form>
<p>
</p>
</body>
</html>