Solved

Problem with HTMLInputFile

Posted on 2004-09-07
6
512 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 500 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 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