473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

fileupload control

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
5 12065
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Uncle Ben | last post by:
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that, I mean is it reliable enough to accept 2-gigabyte file uploads per upload session? Also, is it possible or easy to...
2
by: Paolo | last post by:
Hi to all, I have an error that drove me crazy. Try the following page that should only allow to upload a file: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">...
1
by: Harinath | last post by:
Hi All, I am working on a portal using .net2.0. In one of my page, i have FileUpload control. I am doing some server side validation for form fields in general. if there is any validation...
3
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For...
1
by: Nathan Sokalski | last post by:
I have an ASP.NET 2.0 webform which includes both a FileUpload contol and a Calendar control. When the user selects a new data with the Calendar control, the FileUpload control is reset (there is...
3
by: Nathan Sokalski | last post by:
I have a FileUpload control which is inside an UpdatePanel which is inside a TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length properties. However, after I select a file,...
6
by: GaryDean | last post by:
Is there any way to make an asp FileUpload control work within an UpdatePanel? Thanks, Garyh
0
by: bharathreddy | last post by:
How to format FileUpload control. As far as I am consurned there is no direct formating available for formating FileUpload Control using css. I will share one of my ideas where I implemented this...
3
by: bharathreddy | last post by:
I am using updatepanel in my application and fileupload control...there is no way to customize the look and feel of the fileupload control so what i have done is kept an image on top of the browse...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.