File.PostedFile

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am using asp.net (VB)
for uploading the files on my server I am using
input type file (runat=server)

my code is
If ( FileProductImage.PostedFile.ContentLength > 0 ) Then

strurl = "c:\images\image1.jpg"

FileProductImage.PostedFile.SaveAs(strurl)

End If

-------

I am getting error on the first line

(FileProductImage.PostedFile) doesnt give error

( FileProductImage.PostedFile.ContentLength ) gives error -- Object
reference not found.

why do I get this errror only on implementation server & not on development
server.

it works fine on development server .

help please.








.



Relevant Pages

  • Re: File.PostedFile
    ... > input type file ... That means PostedFile is null (i.e. ... > why do I get this errror only on implementation server & not on ... > it works fine on development server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RFD: How To Recognize Bad Javascript Code v0.3
    ... misnomer because in practice it means "last uploaded to the server". ... It has nothing to do with "uploading". ... right options on "rsync" the file's last modified timestamp doesn't ...
    (comp.lang.javascript)
  • Re: File Permissions problem : Cry for HELP
    ... Me2resh Lists wrote: ... also about configuring the server i am uploading to, i dont think that there is something wrnog with the server cause when i upload the same files from windows, it works with no problems ... You need to change the umask used when you are saving web files. ... Depending on how you are uploading the files, ...
    (Fedora)
  • Re: Subversion web development question.
    ... Currently we're using ASP on Win2K with SQL Server 2000. ... I have found information on how to update files on the live server from the development server, but not much in the way of how to set up a development server to get Subversion to update the files in the Apache directories. ...
    (freebsd-questions)
  • Re: RFD: How To Recognize Bad Javascript Code v0.3
    ... misnomer because in practice it means "last uploaded to the server". ... It has nothing to do with "uploading". ... index.html, while I have been editing the FAQ, has *never* been ... is by uploading a replacement, direct editing on the server, or by ...
    (comp.lang.javascript)