repeater 动态显示隐藏列

今天做了一个repeater 动态显示隐藏列的功能。。查了一下网上的方法,然后自己按照别人的方法写了如下的列子: 

   <%--   用于显示隐藏列--%>
                                        <%switch (hdfStatus.Value)
                                          {
                                              case "" :
                                              case "1": 
                                        %>
                                         <td>
                                            <b><a id="A1" runat="server" onserverclick="OrderByStartTime" style="color: #275a93">
                                                开始时间</a></b>
                                        </td>
                                        <td>
                                            <b><a id="A2" runat="server" onserverclick="OrderByEndTime" style="color: #275a93">结束时间</a></b>
                                        </td>
                                      
                                        <%break;
                                              case "2": %>
                                        <td>                             
                                                <asp:Label ID="LB_Complete" runat="server" Text="完成情况"></asp:Label>
                                        </td>
                                        <%break;
                                          }%>

posted @ 2012-01-15 23:02  Jack.G  阅读(2576)  评论(0编辑  收藏  举报