Solved

c# asp.net website manipulating user file on desktop

Posted on 2012-03-29
7
223 Views
Last Modified: 2012-04-09
Hi Guys,

I have created a website which will grab a specific excel file on the users desktop and manipulate contents.  The catch is I have only done this on my local machine in microsoft visual web developer 2010 express, and have not put on web host yet.  So I have not tested it on the actual internet as of yet.

It obviously works local.. but my question is there has to be some type of security to allow a website to read a users pc and manipulate a file.  What strategy to I go about confronting this issue?  Will it just fail in a live environment, or will it ask user to allow manipulation?  Or do I need to write some type of code to ask user to allow?

Thank in advance
0
Comment
Question by:solarissf
  • 4
  • 3
7 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37781652
Unfortunately this will fail in a live environment, it is working now as you machine is acting as the Server when running so it is allowed to manipulate files on the 'server'.
However in a live environment it will be breaking security to try and access a local users file system through the browser.
0
 

Author Comment

by:solarissf
ID: 37781655
how do I go about fixing this?
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 37781713
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:solarissf
ID: 37781798
instead up having the user upload the file.  Someone recommended something about creating an activeX object, downloading it to the user, and manipulating that object.... this is above my head at the moment but I might have to learn... can you explain this process?
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37781860
Sorry that is beyond my knowledge, don't use ActiveX objects as they can only be used by Internet Explorer generally.
0
 

Author Comment

by:solarissf
ID: 37781886
thanks jacko, appreciate you input... I may have to do the upload but hopefully I can figure out this activex idea.  

Does anyone have any input on activex?
0
 

Author Comment

by:solarissf
ID: 37782526
Or even if its not activeX, are there any more suggestions for my website to manipulate a specific excel file on the users desktop.  I'm doing some google searches and finding things like Web Deploy, but not sure if I'm on the right track.

Thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple file Upload asp.net 2 41
Getting multiple values from a dataset ASP.NET(VB) 3 37
consuming an asmx web service in winforms application 3 26
Replace &lt; with < 14 57
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now