Results 1 to 2 of 2

Thread: retrieve value from asp.net to javascript

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    4

    retrieve value from asp.net to javascript

    hi... i got a problem here... i need to retrieve value from a textbox created by asp.net and put it in a textarea in javascript... is there any solution to it??

    thankz

    regard

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You can do this by grabbing the .clientID of a textbox and throwing it into a registerclientscriptblock function... or, if the id's are static, bypass the server side code and using a simple javascript function...

    Code:
    var myText = document.getElementById('TextBox1').value;
    document.getElementById('myTextArea').value = myText;
    ;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width