DataList实现行转列及条件式绑定 DataList1.RepeatColumns
2016-07-20 08:47
357 查看
<asp:DataList ID="DataList1" runat="server"> <ItemTemplate> <% if(aa=="0"){ aa="1";%> <table class="tb"> <tr style="height:23px;"> <td>111</td> </tr> <tr style="height:23px;"> <td>评估得分</td> </tr> <tr style="height:100px;"> <td>评估说明</td> </tr> </table> <%} else {%> <table class="tb"> <tr style="height:22px;"> <td><asp:Label ID="Label1" runat="server" Text="Label"><%#Eval("id") %></asp:Label></td> </tr> <tr style="height:22px;"> <td><asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("name") %>'></asp:TextBox></td> </tr> <tr style="height:100px;"> <td><asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("sex") %>'></asp:TextBox></td> </tr> </table><%} %> </ItemTemplate> </asp:DataList>
相关文章推荐
- lintcode add-binary 二进制求和
- 嵌入式开发第9天(结构体,枚举,共同体,typedef)
- POJ 1190 生日蛋糕
- iText生成pdf中文字体解决方案
- [Cloud Computing]Mechanisms: Physical Uplink
- python学习——使用模板
- 零基础学写界面
- 递推算法例题
- 商务通对话窗口左侧图片广告
- arm堆栈的增长方式
- SqlMap使用手册
- hdu 5179 beautiful number(打表,数位DP)
- Android如何在一个线性布局里完美显示两个listview啊?
- 为什么我觉得做在线教育平台的都不靠谱
- Git入门(4)-版本回退
- Codeforces Round #363 (Div. 2) C. Vacations(DP 动态规划)
- 用apache-cxf生成webservice客户端的时候报错Parameter: shead already exists for method
- redis 内存优化
- 反射 浅析
- redis 内存优化