aspx连接

<%@ 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>
       &nbsp;</p>
</body>
</html>

上一篇:“视图状态损坏”的困扰


下一篇:WPF Events