Hi,

I have attached screenshots for better explanation.

I have a textbox(textbox1) and a button(button1) which says Click the button.

Also I have a File Upload Control in the next line.(which has text box and a browse button)

I want it such that:

When i enter in the textbox1(For instance--i give abc.txt or hey.txt) and i click the button(which says Click the button)then the same text in textbox1(abc.txt or hey.txt) should appear in the FileUpload Control text box.

I have attached a screen shot in the attachment below(output_needed.png)

Thank you.

Hi,

You cannot retain value in FileUpload control due to security reasons. Also you cannot save the file entered manually in the FileUpload control. You can upload the file only if the file is browsed and selected by clicking the 'Browse' button.

Please refer the following link.

http://forums.asp.net/p/1155617/1896657.aspx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.