Re: Programmatic access to HtmlInputFile value it is a runat server

Tech-Archive recommends: Fix windows errors by optimizing your registry



This looks like a security issue here. you are not allowed to do this.
What happens if I pre-populate your email address book or some important
file on your machine and upload it.
Other options may be an activex, java, or .NET control. again they must be
trusted.

Sa


"cindy" <cmello@xxxxxxxxxxxxx> wrote in message
news:F2070996-779C-4BAA-9D55-EA16D0127BF8@xxxxxxxxxxxxxxxx
I found this but I don't know enough where to start
............
these controls do not save their viewstate. LoadPostData always returns
false, and the Value property is readonly. You can inherit from the class
and
override LoadPostData to return true and try to restore the value, but
value
is readonly.

Example to inherit from HtmlInputFile class and override LoadPostData to
return true I am using C# and this is challenging me bad. cindy


"cindy" wrote:

I have a System.Web.UI.HtmlControls.HtmlInputFile control that I use to
submit files. Before the file is successfully submitted I validate
another
field on the form, it is the description of the file must be 500
characters.
I am adding the file to a site server library programmatically so if the
field is too long I want to return the user to the form with file still
selected in the HtmlInputFile control. I am using an error label to
inform
the user to shorten the description. I do not want the user to have to
browse again to the same file after he has shortened the description.
Right
now the file does not upload but the control is empty. ASP.NET does not
let
me programmatically put the full filename and path back into the Value
property of the HtmlInputFile control. How can I do this? I have version
asp.net 1.1
If there is a better thread to post this in please tell me where. I have
searched on Google and cannot find anything. Can I "override" the value
property to add the set? Please help. Cindy

--
cindy


.



Relevant Pages

  • Re: Programmatic access to HtmlInputFile value it is a runat serve
    ... not have to reselect to try upload again. ... Other options may be an activex, java, or .NET control. ... Example to inherit from HtmlInputFile class and override LoadPostData ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Programmatic access to HtmlInputFile value it is a runat serve
    ... not have to reselect to try upload again. ... Other options may be an activex, java, or .NET control. ... Example to inherit from HtmlInputFile class and override LoadPostData ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Last Cry
    ... Sounds like he has it all under control. ... Must be the time of the year - like mating skunks, ... > Cindy, read the part that I clipped from her message and - she says she ... > we took things form the house, etc. SO yeah, I'm a little bit pissed off, ...
    (rec.crafts.textiles.quilting)
  • RE: Dynamic control array loading, cant unload control/replace with o
    ... "cindy" wrote: ... > control loads, page1.ascx,page2.ascx,page3.ascx ... > control to go away when a different one is clicked, ... > I do not understand the syntax for controls.remove the sample says ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HTML InPUTFile
    ... HtmlInputFile control will not maintain its' state between PostBacks. ... > sub ValidateInputFile ...
    (microsoft.public.dotnet.framework.aspnet)