User-1951273727 posted
Hi i am getting the System.NullReferenceException: Object reference not set to an instance of an object. error when i try to upload an image can someone help? The site is going really well the only thing i can't seem to do is upload photo's.
Protected Sub UploadBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim newimageid As Integer
newimageid = ImageUtils.uploadImage(Title.Text, CInt(AlbumList2.SelectedValue), FileUpload1.FileContent)
ImageId = newimageid
viewswitch.SetActiveView(main)
End Sub
It errors on newimageid = ImageUtils.uploadImage(Title.Text, CInt(AlbumList2.SelectedValue), FileUpload1.FileContent)
please help this is driving me mad