set text to a radtextbox

2 posts, 0 answers
  1. beeta one
    beeta one avatar
    63 posts
    Member since:
    Aug 2012

    Posted 04 Jan 2013 Link to this post

    Hi,
    How can i set text to a radtextbox from javascript?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Jan 2013 Link to this post

    Hi,

    Try the following code snippet to achieve your scenario.

    JS:
    <script type="text/javascript">
        function OnClientClick() {
            var txtbox = $find("<%= RadTextBox1.ClientID %>");
            txtbox.set_value("Your text");
        }
    </script>

    Hope this helps.

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