Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repeater & if then
Message
From
06/11/2006 10:51:35
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
05/11/2006 07:19:07
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01167174
Message ID:
01167315
Views:
6
>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")' ...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform