Groups > Asp .Net > ASP.NET Atlas Framework discussion > Re: FileUpload doesn't work when it's inside of UpdatePanel




FileUpload doesn't work when it's inside of UpdatePanel

FileUpload doesn't work when it's inside of UpdatePanel
Mon, 25 Sep 2006 11:22:22 +000
Hello

I was working fine with a FileUpload control.  But when I move this control
inside of the UpdatePanel it doesn't work.

I receive the error message: "Object reference not set to an instance of an
object" in the first line of this code below...(VB)

Dim strFileName1 AsString

strFileName1 = FUpload.PostedFile.FileName

Try

Dim Archivo AsString = "C:\WebSite\Images\Custom_ID\" &
TextBox1.Text

FUpload.PostedFile.SaveAs(Archivo)

Catch ex As Exception

L_ErrorImage.Text = "Error!!!"

EndTry

----- 

Thanks for your help. - henpat
Post Reply
Re: FileUpload doesn't work when it's inside of UpdatePanel
Mon, 25 Sep 2006 13:58:23 +000
Spend a few seconds and search this forum for "fileupload" for many
previous (and well discussed) topics on this exact subject
Post Reply
Re: FileUpload doesn't work when it's inside of UpdatePanel
Mon, 25 Sep 2006 17:13:56 +000
The document of quick start specifically said that file upload will not work
with updatePanel
Post Reply
Re: FileUpload doesn't work when it's inside of UpdatePanel
Tue, 26 Sep 2006 07:43:03 +000
Ok.

So bad :(
Post Reply
about | contact