Setting decimal places and accessing in code behind

2 posts, 1 answers
  1. Merlin
    Merlin avatar
    15 posts
    Member since:
    Feb 2013

    Posted 26 Feb 2013 Link to this post

    Hi,
    I have a Radnumerictextbox and i want to enter values with 2 decimal places. Also how to access these values with decimal place in code behind?
    Thank you,
    Merlin.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Feb 2013 Link to this post

    Hello Merlin,

    Try setting the NumberFormat-DecimalDigits property of the RadNumericTextBox to accept a desired number of decimal places.

    To access the value in code behind, please have a look at the following code.

    C#:
    double _value1 = Convert.ToDouble(RadNumbericTextBox1.Text);

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top