请问如何在cs文件里循环aspx文件里的表格 请问如何在cs文件里循环aspx文件里的表格,在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 定义一个private string str="";循环生成str=""aspx读出这个str不就可以了吗?是这个意思?不过真是不明白什么意思?aspx文件里的表格??????费解啊可以用用datagrid===啊 <%for(i=0;i<3;i++){%><table></table<%}%> Rwap.aspx代码如下:<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Rwap.aspx.cs" Inherits="Rwap" Title="任务安排" %><asp:Content ID="Content1" ContentPlaceHolderID="MiddleFlame" Runat="Server"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="30"> 你的位置:任务安排</td> </tr> <tr> <td align="center"> <table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse"> <tr> <td width="12%" height="25" align="center"><%=str%></td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> <td width="12%" height="25" align="center"> </td> </tr> </table> </td> </tr></table></asp:Content>就是想把上面表格的行数循环几次 你可以弄个runat=server的div然后再.cs中给这个div的InnerHTML赋值~~~~ 页面上放一个Literal控件,然后在后台程序里通过循环 写个自定义控件,使用for就行了。关键字,tabel,tablerow.tablecell 可以在C#中写HTML代码,在写到表格这部分时用循环就可以了 C#Socket发送大量数据 C#如何动态创建linkLabel并加上不同的链接 特殊的报表问题. C#如何创建一个新用户(windows用户) c#2005webbroser控件可以使用线程吗 生成一个web应用程序时候,第一个页面名字为webForm1,如何改这个名字?在外部改文件名? 请问:在Windows应用程序中使用viewtree,如何根据不同的节点激活不同的Form? 急求:如何释放内存空间? .net 一个小问题 c# webkit.webbrowser怎样获取cookie .net 后台生成文件下载地址 一个类中调用另一个类的方法
循环生成str=""aspx读出这个str不就可以了吗?是这个意思?不过真是不明白什么意思?aspx文件里的表格??????费解啊可以用用datagrid===啊
<table>
</table
<%}%>
<asp:Content ID="Content1" ContentPlaceHolderID="MiddleFlame" Runat="Server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30"> 你的位置:任务安排</td>
</tr>
<tr>
<td align="center"> <table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse">
<tr>
<td width="12%" height="25" align="center"><%=str%></td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
<td width="12%" height="25" align="center"> </td>
</tr>
</table> </td>
</tr>
</table>
</asp:Content>就是想把上面表格的行数循环几次
然后再.cs中给这个div的InnerHTML赋值~~~~
关键字,tabel,tablerow.tablecell