Remove a list of characters

4 posts, 1 answers
  1. Antony
    Antony avatar
    32 posts
    Member since:
    Feb 2013

    Posted 03 Jun 2013 Link to this post

    Hi,

    I have a radtextbox and from server code I want to trim a list of characters from the end. How to accomplish?

    Thanks,
    Antony.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Jun 2013 Link to this post

    Hi,

    Please have a look at the following C# code.

    C#:
    string text = RadTextBox1.Text.TrimEnd(new char[] { ',', ';', '/' });

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Antony
    Antony avatar
    32 posts
    Member since:
    Feb 2013

    Posted 04 Jun 2013 Link to this post

    Thanks for the support :)

    I have another query. In HTML5, for input we can give placeholder which acts as water-mark. Similarly for the RadTextBox, how can we give a placeholder?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jun 2013 Link to this post

    Hi Antony,

    Try setting the EmptyMessage property of the RadTextBox which can act like the HTML5 input placeholder.

    Thanks,
    Shinu.
Back to Top