PDA

View Full Version : قرار دادن مقدار یک فیلد در خاصیت visible یک کنترل



rezaei manesh
شنبه 02 دی 1385, 17:35 عصر
سلام
من می یک دیتا لیست دارم که درون اون چند کنترل را درون یک پنل گذاشتم و می خوام این پنل برای رکورد هایی نمایش داده بشه که یکی از فیلد x اون برابر True یا همون 1 هست
من با کد زیر نتونستم در ضمن نوع فیلد از نوع Bit هست


<asp:Panel ID="PnlMail" runat="server" Width="100%" Visible=<%#Eval("ShowMail")%> >
<table style="width: 100%; border-top-style: none; border-right-style: none; border-left-style: none;
border-bottom-style: none">
<tr>
<td align="right" dir="rtl" style="width: 4%; color: #660000; border-top-style: none;
border-right-style: none; border-left-style: none; height: 20px; border-bottom-style: none">
</td>
<td align="right" dir="rtl" style="height: 20px; color: #660000;" colspan="5">
پست الکترونیکی : <%#Eval("AdvEmail")%></td>
</tr>
</table>
</asp:Panel>

اینم نشد اینو که می زارم مولتی ویو اون خطا میده!


<asp:Panel ID="PnlMail" runat="server" Width="100%" Visible="<%#Eval("ShowMail")%>" >