How would I change a character, like a the letter L to D in a string form a textbox or variable?

Posted on 2011-10-18
Last Modified: 2013-12-16
I want to change some of the letters in a text box to a different letter.  Like change “L” in Luck to “D” so it says Duck.

Thanks for the help.
Question by:bmanmike39
    LVL 2

    Expert Comment


    this will change all occurences of a particular character, is that what you want, otherwise please specify how you will know which character to change
    LVL 2

    Accepted Solution

    but here is reference to all string functions maybe you find something useful here
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    Client-side or server-side?

    Author Closing Comment

    LVL 2

    Expert Comment

    c# so server side, do you need it client side? then you need javascript string utilities

    here is the replace method

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now