?
Solved

Parsing a text file.

Posted on 2012-03-15
4
Medium Priority
?
250 Views
Last Modified: 2012-04-04
I apologize in advance for this question.  I'm sure you get it constantly and you probably cringed when you read the question title.

I am working with a Silverlight application (C#).  My application gathers information from my clients, quite a few server-side calculations are done, and then the analysis is delivered back to my clients.

My clients upload raw data files (usually fixed width or delimited text files) with vast amounts of information in them, most of which I don't need, to my server.  There I parse the files and send the data back to the client to be displayed in a datagrid for validation purposes, essentially making sure the files are mapped appropriately.

I am looking for a way to eliminate the trip to the server before data validation.  I would like to handle the parsing of the text file client side.

For what it is worth, I have access to ComponentOne's C1Data product for Silverlight, which basically gives me a subset of the System.Data namespace.

Thank you very much for your time.
0
Comment
Question by:CharlesMartel732
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Expert Comment

by:DarrenD
ID: 37737900
Hi,

I am just wondering why you feel the need to validate this client-side.

Personally, I would keep this on the server side for a couple of reasons
1) because the server does all the work
2) if you changed from silverlight to web pages or winclient you would not have to re-wite the client code

These are just two and I'm sure there are more....

Obviously if the files are large then this may impact parsing as you have the overhead of uploading the file first. But I would still prefer parsing on the server.

This is my two cents....

Cheers,

Darren
0
 

Author Comment

by:CharlesMartel732
ID: 37738408
Thanks for taking the time to reply.

The vast majority of the time clients are using data files that contain sensitive information and they don't have the ability to remove that information themselves.  

Even though I can take precautions to secure the data when it is transmitted to my end, I think it will give them peace of mind if I can remove all unnecessary, and sometimes sensitive, information client-side.

For what it is worth, I am not an expert in these matters so if you think I am off-base here, your comments would be very much appreciated.

Thank you.
0
 
LVL 18

Accepted Solution

by:
DarrenD earned 1500 total points
ID: 37738574
Hi again,

Where security is concerned, it will be a case of keeping the client happy. If they do not wish to have something transmitted that you will have to take precautions on the client side.

As you said you could secure the data both before transmission and during transmission, however, if the client does not want it sent over the wire for whatever reasons then you have little choice but to remove this before it is sent.

Hope this helps,

Darren
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question