zoukankan      html  css  js  c++  java
  • 控制 table td 输出 【原】

    Response.Write("<table width='90%' align='center' border='0' cellpadding='3' cellspacing='0' style='border:1px solid #CCCCCC'>\n");
            Response.Write("<tr>\n");
            int columnLimit = 11;
            int columnNo = 0;
            for (int i = 0; i < dataSuppliers.Length; i++)
            {
                if (!dataSuppliers[i].Equals(""))
                {
                    if (columnNo < columnLimit) { columnNo++; }
                    else
                    {
                        Response.Write("</tr>\n");
                        Response.Write("<tr>\n");
                        columnNo = 1;
                    }
                    if (recordExists[i])
                    {
                        string url = "<a href='EnterpriseInfoShow.aspx?creditID=" + creditID + "&dataSupplier=" + dataSuppliers[i] + "'>" + dataSuppliers[i] + "</a>";
                        Response.Write("<td align='center' style='border-right:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;'>" + url + "</td>\n");
                    }
                    else
                    {
                        Response.Write("<td align='center' style='border-right:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;'><font color='#AAAAAA'>" + dataSuppliers[i] + "</font></td>\n");
                    }
                }
            }
            for (int i = columnNo; i < columnLimit; i++) { Response.Write("<td> </td>\n"); }
            Response.Write("</tr>\n");
            Response.Write("</table>\n");
  • 相关阅读:
    ArcEngine的符号库
    Web programming is functional programming (Web编程是函数式编程)
    arcengine中拓扑的使用(ZZ)
    Win32基于事件驱动的消息机制(ZZ)
    人生要小心处理的50件事
    谁想出来的?
    80后 最牛的辞职信
    能读懂这些话的,都是心里有故事的人
    Try to code some sql statement to catch the consume much CPU time sps.
    读书是为了生命的完整
  • 原文地址:https://www.cnblogs.com/xsmhero/p/1910987.html
Copyright © 2011-2022 走看看