Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    May 2005
    Thanked 0 Times in 0 Posts

    Question Opening A .txt File Into A Textarea


    Using the asp upload method, how I bang the file on the server,
    using file.getfilename and place that to a TEXTAREA?

    The file must me selected from a list to choose the text file which you want to input. Then using the fso read the file and copy contents in text area.

    I have this script, but not works:
    <body onload="document.getElementById( 'idMyArea' ).value = document.frames[ 0 ].document.body.innerText;" >
    <textarea name="txtMyArea" id="idMyArea"></textarea>
    <iframe src="file:\\<%=Request.Form( "NameOfFileControl" )%> id="idMyFrame" style="display:none;"></iframe>
    I would be very intrigued to see the solution.

    Many Thanks for any assistance,


    Last edited by JANLEE; 09-27-2005 at 03:47 AM.


Posting Permissions

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