Hello
This is the first time using <input id="fupload" type="file" runat="server"> with ASP.NET in
VB.Net
I have one browse button to pick the file to upload and another button to upload.
<asp:button id="btnUpload" runat="server" Text="Upload Image"></asp:button>
When I click browse, i can select a file that I want but when I click Upload button, fupload.PostedFile value is nothing.
Private Sub btnUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpload.Click
If fupload.PostedFile Is Nothing Then
lblError.Text = "No file received"
Else
lblTest.Text = fupload.PostedFile.FileName.ToString
End If
End Sub
I get "No file received".
What is wrong. I can't figure it out.