File Upload weirdness...
- From: "Regan" <regan.thomas@xxxxxxxxxxx>
- Date: Wed, 12 Mar 2008 21:55:05 -0400
Ok,
So, I'm a .NET/AJAX web application (VB.NET) and in one of my content screens, among a barrage of controls and panels, I have a File Upload control... nothing fancy.
Below the control there is a standard button called aFile_btn.
This is the click event of aFile_btn:
---------------------------------------------------------------
Protected Sub aFile_btn_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If FileUpload1.PostedFile.FileName <> "" Then
End If
End Sub
--------------------------------------------------------------
Simple? I thought so. But when I run the app and click aFile_btn I get the following error on the "If" line:
Object reference not set to an instance of an object.
You think that's frustrating? there's more. If I copy and paste the exact code behind the button onto a fresh page, with only a FileUpload control and a Button, it works perfectly...........
Any ideas?
.
- Follow-Ups:
- Re: File Upload weirdness...
- From: Paul Shapiro
- Re: File Upload weirdness...
- Prev by Date: Re: Problem with html page (Firefox only)
- Next by Date: Re: SqlCommand Parameters.Add
- Previous by thread: Problem with html page (Firefox only)
- Next by thread: Re: File Upload weirdness...
- Index(es):