locked
apply 3 digit to my eval label RRS feed

  • Question

  • User-807418713 posted

    Hello

    This is my code

      <asp:Label ID="LQ" runat="server" Text ='<%#Eval("Quantity").ToString() == "0" ? "" : Eval("Quantity", "{0}")%>' style="text-align: right;"></asp:Label> 

    How to round 3 digit for my above code 

    Thanking you

    Thursday, February 25, 2021 11:33 AM

Answers

  • User-1716253493 posted

    Eval("Quantity","{0:N3}")

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 25, 2021 12:08 PM