Cerebrus

Progressbar via binding

Jan 14th, 2010
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.35 KB | None | 0 0
  1. <asp:Label ID="LabelProgressBar2" runat="server" Style="padding-left: 2px; font-weight: bold;" Height="100%" BackColor="Green"
  2.   Width='<%# Unit.Percentage(Convert.ToDouble(Eval("score")) * 100) %>'
  3.   Text='<%# Bind("score", "{0:00.0000%}") %>'
  4.   ForeColor='<%# Convert.ToDouble(Eval("score")) <= 99.9 ? Color.Red : Color.Black %>' />
  5. </asp:Label>
Advertisement
Add Comment
Please, Sign In to add comment