Preserve value in HTML File Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I have three control on page. One is HTML File Control and other two is Web Control Button.
Now when i click on first button the page is posted and i want the file path that was previously selected
get displayed in the HTML File Control. After this i click on second button and file is processed at the server.

Can anyone tell me how to preserve and set the value in the HTML File Control in the above cenario.

Thanks in Advance
Amit Pandya
 
Hi, Amit Pandya,

It is a security limitation. You should reconsider your design.

Greetings
Martin
Amit Pandya said:
Hello
I have three control on page. One is HTML File Control and other two is Web Control Button.
Now when i click on first button the page is posted and i want the file
path that was previously selected
get displayed in the HTML File Control. After this i click on second
button and file is processed at the server.
 
Can you englight me on how to resolve this problem as it is required urgently
If you have some other to do ways please tell me

Amit Pandy
 
Amit Hi,

I don't see why you need two Buttons. As I understand you simply want to
let the user select a file and then push a button to submit the file to
the server. If this is what you after, the selected files can be reached
from the server using Request.Files collection.HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 
Back
Top