By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,685 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,685 IT Pros & Developers. It's quick & easy.

fileupload control

P: n/a
Hi

How can you set the filename property in the asp:fileupload control? How can
you persist the value of the chosen filename between postbacks?

thanks

B
May 30 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,
One MSFT has already answered your query in below link:
http://www.eggheadcafe.com/aspnet_an...st26322769.asp
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Bert" wrote:
Hi

How can you set the filename property in the asp:fileupload control? How can
you persist the value of the chosen filename between postbacks?

thanks

B
May 30 '07 #2

P: n/a
thanks

But how do you set the value of the Fileupload control - filename property
since it is readonly?

B

"Manish Bafna" wrote:
Hi,
One MSFT has already answered your query in below link:
http://www.eggheadcafe.com/aspnet_an...st26322769.asp
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Bert" wrote:
Hi

How can you set the filename property in the asp:fileupload control? How can
you persist the value of the chosen filename between postbacks?

thanks

B
May 30 '07 #3

P: n/a
Hi,
I dont not in what way you are using FileUpload Control.Are you trying to
set filename property programatically?.The FileUpLoad control enables you to
upload file to the server. It displays a text box control and a browse button
that allow users to select a file to upload to the server.
The user specifies the file to upload by entering the fully qualified path
to the file on the local computer (for example, "C:\MyFiles\TestFile.txt") in
the text box of the control. Alternately, the user can select the file by
clicking the Browse button and then locating it in the Choose File dialog
box. The FileUpload control does not automatically save a file to the server
after the user selects the file to upload. You must explicitly provide a
control or mechanism to allow the user to submit the specified file. For
example, you can provide a button that the user clicks to upload the file.
The code that you write to save the specified file should call the SaveAs
method, which saves the contents of a file to a specified path on the server.
Typically, the SaveAs method is called in an event-handling method for an
event that raises a post back to the server
For more details refer below links:
http://quickstarts.asp.net/QuickStar...ileupload.aspx
http://aspalliance.com/761_CodeSnip_...Upload_Control
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Bert" wrote:
thanks

But how do you set the value of the Fileupload control - filename property
since it is readonly?

B

"Manish Bafna" wrote:
Hi,
One MSFT has already answered your query in below link:
http://www.eggheadcafe.com/aspnet_an...st26322769.asp
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Bert" wrote:
Hi
>
How can you set the filename property in the asp:fileupload control? How can
you persist the value of the chosen filename between postbacks?
>
thanks
>
B
May 30 '07 #4

P: n/a
The functions you're requesting are not supported for security reasons.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Bert" <Be**@discussions.microsoft.comwrote in message
news:6A**********************************@microsof t.com...
Hi

How can you set the filename property in the asp:fileupload control? How
can
you persist the value of the chosen filename between postbacks?

thanks

B
May 30 '07 #5

P: n/a
How can you set the filename property in the asp:fileupload control?

You can't.
How can you persist the value of the chosen filename between postbacks?
You can't.
May 30 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.