>I use repater to show the data(invoice), the last column (download button)
>for the user to download the invoice copy However, if the invoice had been
>settled, the download must bet disable or visible to false.
>I try to use if ... then statment to do , but it seesm fail.
>Please help
>
>< %# If Container.DataItem("paid") = "Y" Then%
> < form action="download.aspx"
>input type="button" value="Download"............."
>
> %end if %
Agnes,
You can set the button's visible property with an inline-IF:
<asp:button id="btnDownload" visible='< % IIf(DataBinder.Eval(Container.DataItem, "paid") = "Y", "True", "False")' ...