sisibest

导航

客户端控件不能用visible 服务端控件才可以

<td style="padding-left: 0px; padding-right: 0px" align="center">
                    <div class="DivAutoHidden" title='<%#Eval("LogisticsNumber")%>' style='<%# "width: 100px;"+(Eval("Status").ToString()!="1"?"": "display:none")%>'>
                        <asp:Label ID="Label1" Text='<%#Eval("LogisticsNumber")%>' runat="server"></asp:Label></div>
                    <asp:TextBox runat="server" ID="txtWayBillNum" Text='<%#Eval("LogisticsNumber") %>'
                        MaxLength="50" Visible='<%#Eval("Status").ToString()=="1" %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvWayBillNum" runat="server" ControlToValidate="txtWayBillNum"
                        Display="None" ErrorMessage='<%# "请输入第"+Eval("rowNum")+"行运单号码!"%>' Text="*" ValidationGroup="confirm">
                    </asp:RequiredFieldValidator>
                </td>

 

(Eval("Status").ToString()!="1"?"": "display:none")

posted on 2013-02-22 11:16  sisibest  阅读(129)  评论(0编辑  收藏  举报