Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem with HTMLInputFile

Posted on 2004-09-07
6
Medium Priority
?
518 Views
Last Modified: 2008-02-01
Hi!

I'm trying to edit a script made by someone else.

The problem I'm having is that the fileupload module doesn't work?

It says that the value property in HTMLInputFile not can be set.

Where should I look for answers?

Thanks!
0
Comment
Question by:Hermund
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 11998425
Need more details... What is "HTMLInputFile" ? How are you using that ? Need some code to...
-Baan
0
 
LVL 15

Accepted Solution

by:
Thogek earned 2000 total points
ID: 11999503
The HtmlInputFile.Value Property appears to be read-only:

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlinputfileclassvaluetopic.asp

"Note   The Value property is read-only. If you attempt to assign a value to this property, a System.NotSupportedException is thrown."
0
 
LVL 15

Expert Comment

by:Thogek
ID: 11999517
Silly question: Why would you want to modify the property that stores "the full path of the file on the client's computer" anyway?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 15

Expert Comment

by:Timbo87
ID: 12000632
Yes, it's an HTML limitation/feature. No custom control or fancy code can circumvent that.
0
 
LVL 15

Expert Comment

by:Thogek
ID: 12002225
Well, the HtmlInputFile.Value property contains the path of the submitted file indicated where _on the client's computer_ it is located.  Client.  As is browser.  Not something the server should have any need or reason to want to change, since it's only indicating where the file came from -- not where it's going or anything else relevant to its handling on the server.

Hence my question above: What it is that you are trying to do that led you to try modifying the HtmlInputFile.Value property?  (If we understand that, perhaps we can suggest an alternative way to do it.)
0
 

Author Comment

by:Hermund
ID: 12003990
Thanks for your help!

This is not my code. I've been assigned the job of fixing code from someone else. I don't know yet why they would want to change the value property.

0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question