FileUpload problem

  • Thread starter Thread starter forumaic
  • Start date Start date
F

forumaic

Hello,

I am newbie in this stuff, can somebody to help me.

Maybe can somebody to say how to manually to set file name and path in
code for fileupload control, not to let to choose file for user with
browse button.

For example (textBox) textBox.Text = xxx; textBox.Enable = false;
But how to do the same whith file upload?

Thanks in advance.

A.

I am using VS2005 (C#)
 
Hi

According to my understanding, this is not possible with FileUpload control
due to security reasons.



Regards,
Hameer Saleem
 
You can't do this with server-side code. At least not with un-trusted
connections (Internet).

It can be done with JS and trusted connections. But your end user has
to be on the same domain as your server. So forget it for anything but
intra net applications.

cbmeeks
http://www.codershangout.com
 
Thanks a lot for answers.
You can't do this with server-side code. At least not with un-trusted
connections (Internet).

It can be done with JS and trusted connections. But your end user has
to be on the same domain as your server. So forget it for anything but
intra net applications.

cbmeeks
http://www.codershangout.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top