5

My question have two parts

1) I want to assign filename to FileUpload Control and then save it but the problem is that it is readonly

        FileUpload1.FileName="ClientMachine\\Image1.jpeg";
        FileUpload.SaveAs(ServerMachine\\Image1.jpeg);

Is there any other way?

OR

2)I have Full path of one image at clients machine. I want to download that image.

I searched on google but most of the question do it using ajax,javascript, multipart-form . i don't have any such knowledge. Can i do it purely using C#.

1 Answer 1

2

what you need to do is, access a file at client's computer programmatically without any explicit action from user. its not possible for obvious reasons such as the asp.net code runs on server and your file is at client. There are obvious security reasons for why you can't do it.

You may create some sort of active x or silverlight plug in and run it in elevated mode, but then again, its not recommended.

here's a similar question

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.