Save Dat file at client side

Hi experts, I want to save dat file locally. Is this possible that the client side could save dat file? If not please give me  idea why? Thank you!

<!doctype html>
<form action="save.asp" method="post">
    <label for="textboxdata">Enter a message</label>
    <textarea id="textboxdata" name="textboxdata"></textarea>
    <input type="submit" value="Save locally"/>
        <label>Name of the Dat</label>
          	    <input ype = "text"
                 	        id = "mydatName"
                 	    value = "fortune"

Open in new window

Whing Dela CruzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nitin SontakkeDeveloperCommented:
No, that won't be possible due to security reasons.

However, if you are open for HTML5, which is supported in limited versions of the browsers, you can look into local storage feature.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Whing Dela CruzAuthor Commented:
Okey sir, what about a response from the server and save to client automatically. Example a message from the server and I want to save it to client pc to C:/sample. Is this the same not possible?

response.write(rs("messages")) //Save this message as .txt to C:/sample
Dave BaldwinFixer of ProblemsCommented:
You can not download a file from the server or upload a file to the server automatically.  There must be a 'user action' to initiate either of them.  That is a security barrier to prevent malware from the server from getting to your local files.
Big MontyWeb Ninja at largeCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.