Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Parsing a text file.

Posted on 2012-03-15
4
Medium Priority
?
251 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

604 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