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 104627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:18:41+00:00 2026-05-11T01:18:41+00:00

For part of a web application the user needs to import some data from

  • 0

For part of a web application the user needs to import some data from a spreadsheet. Such as a list of names and email addresses. Currently we do this by asking the user to browse for and upload a CSV file.

Unfortunately, this isn’t always possible as various corporate IT systems only allow users to access files from document management systems and they have no privileges to save these to a local drive or network share.

The solution we have is to allow the user to cut and paste the entire sheet (CSV) into a text area and submit that. On doing this you get a nice tab delimited list of the data that is easily parsed as below.

Lorem   ipsum   dolor   sit amet consectetur adipiscing  elit    Vivamus fermentum Vivamus et  diam    eu  eros egestas rutrum  Morbi   id  neque id  enim    molestie    tincidunt   Nullam 

Unfortunately, various cells could produce unexpected results. In the set below you can see a ‘ within the word prerium, a tab with the word Suspendisse and a line break within the word sollicitudin.

bibendum    ante    molestie    lectus  Sed pret'ium    'Susp   endisse'    'sollic itudin' nisi    at urna    Sed sit amet    odio eu  neque   egestas tincidunt   Nunc metus   Curabitur   at  nibh    Nulla 

In this case I cannot just split on tabs and line breaks without a more enhance mechanism to deal with the tabs, quotes and line breaks within the actual data.

Does anyone know of any code that can handle this reliably? Or even if excel and the clipboard like this can be relied upon to produce consistant results?

I am working in Asp.net 3.5 using C#. The users excel version may vary but should always be Windows 2000/XP/Vista and IE 6/7.

  • 1 1 Answer
  • 2 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. 2026-05-11T01:18:42+00:00Added an answer on May 11, 2026 at 1:18 am

    This looks like a ‘delimited values’ list to me, so basically the same as CSV with TAB as the field delimiter and line break as the row delimiter. You could try it with the CSV Reader library from CodeProject, it should be handle to handle different delimiters, not just comma.

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

Sidebar

Related Questions

As part of a web application users can upload files of data, which generates
I have web application of which major part is javascript. I request images from
I'm writing web application where I need to push data from server to the
In my web application I have a part which needs to continuously crawl the
I just created a new web application that accepts some form based input from
Hy, I have started in my web application a part who users needs to
What are your tricks on getting the caching part of web application just right?
As part of our web application's build process, I have set up our XSLT
I'm writing a simple web application in C# and I've gotten to the part
i have created an mvc3 web application that uses forms based authentication. one part

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.