这个应该如何写?在线等
客户端
<td align= "center " rowspan= "2 ">
服务器端值
ddldatabind.Items.Count
现在想让改成这样 <td align= "center " rowspan= "ddldatabind.Items.Count ">
应该如何写啊?谢谢了!
------解决方案-------------------- <td align= "center " rowspan= " <%=ddldatabind.Items.Count%> ">
------解决方案-------------------- <td align= "center " rowspan= <%=ddldatabind.Items.Count%> >
------解决方案--------------------CS:
private int _count;
public int Count
{
get {return _count;}
set { _count = value; }
}
Count = ddldatabind.items.count;
aspx:
rowspan = ' <%=Count> '