Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7837429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:38:02+00:00 2026-06-02T14:38:02+00:00

me using asp.net mvc as technology behind. how can i use JavaScript for saving

  • 0

me using asp.net mvc as technology behind.
how can i use JavaScript for saving content of div “bla bla” as Txt or PDF Document on Client-side?
something like this?? if yes, how can i do it? me not very strong in javascript 🙁

<div id="Overview">bla bla</div>
<input type="button" id="SaveAsTxt" onclick="JavaScript:SavePartOfPageAsTxt('Overview');"/></div>

 <script type="text/javascript">
<!--
        function SavePartOfPageAsTxt(elementId) {
        }
// -->
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:38:07+00:00Added an answer on June 2, 2026 at 2:38 pm

    Do you want to save the text file on the client or the server?

    For saving to the server, use Javascript to send the data to the server code and use your server code to save it.

    For saving to the client, you might have a problem getting access to the client’s machine (and rightly so), however, you can do it with an ActiveX control or Flash (not ideal), or even save it as a cookie.

    Another option if you wanted to use jQuery is this plugin:
    http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/ – this will ask the client if they’re happy to save the file.

    EDIT: Close duplicate of Read/write to file using jQuery – the same applies for Javascript/jQuery.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASP.NET MVC can be used the view engine Razor. Razor let you use
I'm planning to design simple website using ASP.NET MVC new technology. Many concepts are
Using ASP.NET MVC + jQuery : I need to use some values owned by
Using ASP.Net MVC 2, is there any way to use the RedirectToAction() method of
I am using asp.net mvc 3 jquery validate unobstructive javascript. I am trying to
I've created a content-managed website using ASP.NET MVC. All content is stored in the
Using ASP.Net MVC on my Site.Master I have: <head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server />
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
Using ASP.NET MVC 2.0, I have an actionlink that is used for comments on
I wrote an application using ASP.NET MVC, in this application I have an Index

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.