Solved

Upload file from client to server in asp.net 2.0

Posted on 2011-03-18
7
520 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

920 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

13 Experts available now in Live!

Get 1:1 Help Now