Solved

Parsing a text file.

Posted on 2012-03-15
4
242 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
  • 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 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
performance issue in asp web 5 34
Where did System.Data.Objects go? 2 29
Install both Office 2010 and 2013 4 37
transaction in asp.net, sql server 6 34
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

831 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