Solved

Upload file from client to server in asp.net 2.0

Posted on 2011-03-18
7
525 Views
Last Modified: 2013-11-07
Hi,

I have an application developpedin asp.net 2.0 C# and used within my own company intranet. There is a requirement where files have to be uploaded from a specific folder on client desktop to server side once user clicks a button on the application page.
File is of type pdf and the client side folder path will be retrieved from the server.

User should not be given to browse and select for file to load but only upload files found in the uploaded folder for him. Once upload to server, the file should be deleted from client side

Is there any silverlight, ajax, jquery.js, javascript or activeX component that will enable me to perform this?

Note that security is not an issue, the application has been granted as trusted site with low level security

it is like moving file from client to server side

Thanks. Please provide examples together with solution
0
Comment
Question by:Princemuhammad
[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
  • 4
  • 2
7 Comments
 
LVL 25

Expert Comment

by:apeter
ID: 35183082
You can do in silverlight. for sample see below code. It uses from file open dialog but you can skip and read files from your hard coded path. Also from aspx  page you can call method inside silverlight and vice versa.
http://www.c-sharpcorner.com/UploadFile/nipuntomar/FileUploadsilverlight03182009030537AM/FileUploadsilverlight.aspx
0
 

Author Comment

by:Princemuhammad
ID: 35189445
Hi Peter,
Thanks for your response, I am actually using visual studio 2005 and i did not find any silverlight for this environment. Can you kindly advise how the specified solution can be implemented in .net 2.0?

Is there another way to do it instead of silverlight?
0
 
LVL 25

Accepted Solution

by:
apeter earned 250 total points
ID: 35191996
This link show how to create control on asp.net 2.0
http://stackoverflow.com/questions/758728/how-to-create-silverlight-application-in-asp-net-2-0

this link tells how to use the silverlight xaml and xap files
http://forums.silverlight.net/forums/p/7203/170091.aspx
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

Author Comment

by:Princemuhammad
ID: 35209421
Hi, i am unable to do install silverlight on my pc due to visual studio 2008 SP1 and I have Visual studio 2005 and Visual Studio 2008 SP2 installed.

Is there another solution by using activeX?

Note that there is no security restriction since my application run internally within the company network and web application has been to trusted site with low level security.

Is there not an an activeX which bypass the browser security and run on the aspx page together with javascript and source path is obtained from the server?

I am poor in ActiveX kindly help please
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35231559
Check the Discussion forum
http://forums.asp.net/t/1203189.aspx/1/10

The guy is having the similar Issue.
This may help you
0
 

Author Comment

by:Princemuhammad
ID: 35298668
Hi,

The issue the guy is having, is not the same. He wants to know how to upload multiple files. My requirement is to upload files without user has to browse for the files and select files
0
 

Author Closing Comment

by:Princemuhammad
ID: 35474546
The solution provided in the links are not compatible with .net 2.0
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

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