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;
                                          }%>

你可能感兴趣的:(动态)