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

  • SEARCH
  • Home
  • 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 7920353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:11:11+00:00 2026-06-03T16:11:11+00:00

I need to create a component on a web page to import an excel

  • 0

I need to create a component on a web page to import an excel file so that the data it contains can be inserted into a table. This requires me to send the file to the server, extract the data and send the data back to be inserted into a table. I’m using ASP.NET MVC3 on the server side.

I got the file upload working without using Ajax and I performed the data extraction using an OleDB connection to access the file. The issue surrounds sending the data back to be inserted into the table. I had assumed I could use the Ajax.BeginForm() helper method for uploading the file but this apparently does not work for file uploads (anyone able to tell me why?). So I need to find a way for sending the data back to the client using Ajax. Googling around I’ve found many tools for ajax enabled file uploaders. The one I’ve looked at using is :

http://valums.com/ajax-upload/

This works by returning a json success message when the file is uploaded. This does not fit with what I’m trying to do because I don’t want to store the file on the server but instead want to pass the data back. I’m only learning JavaScript and JQuery so I’m wondering can I just return the data in json format instead and create a handler on the client side to add it to a table? I’d appreciate any code snippets or direction on how to achieve this.

Alternatively if there is a better approach to doing this I’d be happy to change my approach.

  • 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-03T16:11:12+00:00Added an answer on June 3, 2026 at 4:11 pm

    I’m not familiar with the ajax upload toolkit you mentioned. But your question doesn’t really explain where you’re stuck, but what you’re trying to accomplish. You’re able to upload to the server, but are you able to return the correct JSON?

    Once you get that part working, it looks like that toolkit allows you to set a OnComplete function:

    onComplete: function(id, fileName, responseJSON){},
    

    which would allow you to take the responseJSON and populate your table as you see fit. For example (albeit not the greatest):

    onComplete: function(id, fileName, responseJson){
        $(responseJson).each(function(){    
            $('#yourTable').append('<tr><td>' + this + </td></tr>')
        });
    }
    

    Here’s another good link on the subject: http://aspzone.com/tech/jquery-file-upload-in-asp-net-mvc-without-using-flash/

    And here’s a hanselman link with probably more detail that you’re looking for: http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx

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

Sidebar

Related Questions

I need to create a component such as progressbar (as you can see in
I want to create a java application that allows users to import a web
I have turn EJB 3.1 into web-service. And now I need to create the
I need create custom dialog and put JPanel into it. Is it possible?
I need create clone repository. but I do not know where can I get
I need create a document word with Java. And I ask, how can I
I need to create a plug-in (with GUI) for an application that loads them
I need to convert a binary file (a zip file) into hexadecimal representation, to
I need to create a system comprising of 2 components: A single server that
I am developing a simple web application which contains these 3 components: client that

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.