473,395 Members | 1,554 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,395 software developers and data experts.

HTMLInputFile not settable

UJ
Guys,
I know this isn't the appropriate place to post this because it's HTML not
ASP.Net but I need some guidance. I have a web page with an HTMLInputFile on
it. The person enters the stuff, that's all great. They go to the next page
and I allow them to click a button to go back a page to change values. When
I go back one page, I want the HTMLInputFile to be filled in with the
previously loaded value (which I have saved somewhere) but there's no way to
set it. I get a The value property on HtmlInputFile is not settable error
message.

Anybody have any suggestions on what I can do?

TIA - Jeffrey.
Nov 19 '05 #1
3 4713
browser security prevents this, so even if you bypass the asp.net check, it
will be ignored.

-- bruce (sqlwork.com)
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Guys,
I know this isn't the appropriate place to post this because it's HTML not
ASP.Net but I need some guidance. I have a web page with an HTMLInputFile
on it. The person enters the stuff, that's all great. They go to the next
page and I allow them to click a button to go back a page to change
values. When I go back one page, I want the HTMLInputFile to be filled in
with the previously loaded value (which I have saved somewhere) but
there's no way to set it. I get a The value property on HtmlInputFile is
not settable error message.

Anybody have any suggestions on what I can do?

TIA - Jeffrey.

Nov 19 '05 #2
UJ
Can anybody give me help on this?

Again the problem is - I have a page with an HTMLInputFile that I want to
preload with a value.

Can anybody make any suggestions on a way around this? The only thing I can
think of is to make two fields - one that is the name of the file to use,
and one used to upload the file. They would have to fill in the upload file
first - then that would set the value.

TIA - Jeffrey.

"Bruce Barker" <br******************@safeco.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
browser security prevents this, so even if you bypass the asp.net check,
it will be ignored.

-- bruce (sqlwork.com)
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Guys,
I know this isn't the appropriate place to post this because it's HTML
not ASP.Net but I need some guidance. I have a web page with an
HTMLInputFile on it. The person enters the stuff, that's all great. They
go to the next page and I allow them to click a button to go back a page
to change values. When I go back one page, I want the HTMLInputFile to be
filled in with the previously loaded value (which I have saved somewhere)
but there's no way to set it. I get a The value property on HtmlInputFile
is not settable error message.

Anybody have any suggestions on what I can do?

TIA - Jeffrey.


Nov 19 '05 #3
Not sure but it looks like your want the other way round compared with your
workaround (i.e. fill programmatically the HtmlInputFile (input type=file
HTML tag) from an existing value).

To make sure, the problem is that the "value" property for this tag is read
only. the only mean to fill this field with the value is having the user
select a file. This is done for safety reason as otherwise you could upload
files from a web client without user permission.

And the only mean to upload a local file (with HTML alone) is to use this
tag.

A trick could be to have some fields inside an IFRAME, it would allows to
refresh those fields without touching the HTMLInputFile but my first option
would be rather to see if I can change the UI...

Patrice
--

"UJ" <fr**@nowhere.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
Can anybody give me help on this?

Again the problem is - I have a page with an HTMLInputFile that I want to
preload with a value.

Can anybody make any suggestions on a way around this? The only thing I can think of is to make two fields - one that is the name of the file to use,
and one used to upload the file. They would have to fill in the upload file first - then that would set the value.

TIA - Jeffrey.

"Bruce Barker" <br******************@safeco.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
browser security prevents this, so even if you bypass the asp.net check,
it will be ignored.

-- bruce (sqlwork.com)
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Guys,
I know this isn't the appropriate place to post this because it's HTML
not ASP.Net but I need some guidance. I have a web page with an
HTMLInputFile on it. The person enters the stuff, that's all great. They go to the next page and I allow them to click a button to go back a page to change values. When I go back one page, I want the HTMLInputFile to be filled in with the previously loaded value (which I have saved somewhere) but there's no way to set it. I get a The value property on HtmlInputFile is not settable error message.

Anybody have any suggestions on what I can do?

TIA - Jeffrey.



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: R Reyes | last post by:
I am coding a forum and am having problems passing around the attachment file (as an HtmlInputFile) from page to page. Sometimes the users may want to preview their posts with the attachment specs...
1
by: Newbie | last post by:
i have a c# asp.net webform that has an HtmlInputFile and a listbox (to hold the filenames to be uploaded). but HtmlInputFile.PostedFile and HtmlInputFile.Value are readonly properties. i have to...
2
by: Skwish | last post by:
Hi, I have a page with a htmlInputFile that is working fine. However, if I go to another page, and then go back to the page with the htmlInputFile, I get the following error Warning: Page...
2
by: Mark | last post by:
Hi All, I am trying to set the value of HtmlInputFile control programatically but I am getting the error that the value is not settable. The documentation shows that the value property is both...
5
by: shimonsim | last post by:
Hi, I need to upload pictures from client machine and I am using HtmlInputFile control I set validator to make sure that file has correct expention but if one of the files has incorrect extention...
5
by: Ariel Dolan | last post by:
Can I use HtmlInputFile to only get the selected file name but not actually upload the file? Clicking the control's Browse button let's the user select a file. All I need is the HtmlInputFile...
2
by: Augusto Cesar via DotNetMonster.com | last post by:
Hi, I want to customize the HtmlInputFile. I wanna something like an image button to play the "browse" button hole and hide the textbox. Is that possible? I also have tried to hide an...
7
by: Buddy Ackerman | last post by:
I created this class Public Class HTMLFileInput : Inherits System.Web.UI.HtmlControls.HtmlInputFile Public Property Data As String Get Return ViewState("HTMLFileInput.Data") End Get Set...
3
by: Dave Adler | last post by:
Is there any way to retain the value of an HtmlInputFile control through a postback? I do some server side validation on the page when it is submitted and if an error occurs on the page the...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.