公司里面有个页面你们是ListList
 List<List<>> list = new List<List<>>();
 在页面显示没法用空间,我想用脚本语言写个嵌套循环不知道好不好啊!!
 各位大侠帮忙提一下宝贵意见在下新手!
 页面如:
 <%
                            foreach (TraceService.WaybillInfo waybillInfo in this.lBillInfor)
                            { 
                        %>
                        <table  style="width:567px; border:0px;text-align:center; margin-left:100px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <br />
                                     <%
                                         if (waybillInfo.lstTraceInfos != null && waybillInfo.lstTraceInfos.Length > 0)
                                         {
                                         %>
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td style="border: 1px solid #696969; padding: 3px; background-color: #FAFE68; text-align: center;
                                                font-weight: bold; font-size: 12px;">
                                                流程
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div>
                                                    <table cellspacing="0" cellpadding="0" rules="all" 
                                                        style="width: 567px; border-collapse: collapse;border:1px">
                                                        <tr style=" height:20px;">
                                                            <th scope="col">
                                                                号码
                                                            </th>
                                                            <th scope="col">
                                                                时间
                                                            </th>
                                                            <th scope="col">
                                                                流程
                                                            </th>
                                                        </tr>
                                                      
                                                                                                          <% 
                                                foreach (TraceService.WaybillTraceQueryInfo waybillTraceQueryInfo in waybillInfo.lstTraceInfos)
                                                {
                                            %>
                                                   <tr style=" height:30px">
                                                        <td>
                                                            <%=waybillTraceQueryInfo.waybillNo%>
                                                        </td>
                                                        <td>
                                                            <%=waybillTraceQueryInfo.createTime%>
                                                        </td>
                                                        <td>
                                                        
                                                   
                                                                <%
                                                                    if (!string.IsNullOrEmpty(waybillTraceQueryInfo.opCode) && Convert.ToInt32(waybillTraceQueryInfo.opCode) == 740)
                                                                    {
                                                                        Response.Write(waybillTraceQueryInfo.orgName+"/"+ waybillTraceQueryInfo.opName + "/人:" + waybillTraceQueryInfo.revName);
                                                                    }
                                                                    else if (!string.IsNullOrEmpty(waybillTraceQueryInfo.opCode) && Convert.ToInt32(waybillTraceQueryInfo.opCode) == 710)
                                                                    {
                                                                        Response.Write(waybillTraceQueryInfo.orgName+"/"+ waybillTraceQueryInfo.opName + "/人:" + waybillTraceQueryInfo.empName);
                                                                    }else
                                                                    {
                                                                        Response.Write( waybillTraceQueryInfo.orgName+"/"+ waybillTraceQueryInfo.opName);
                                                                    }
                                                                 %>
                                                     </td>
                                                    </tr>
                                           <%
                                                }   
                                           %>
                                                    </table>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>