ASP .NET VB Get Posted File

system32.

New Member
I have inherited an old ASP/VB Web Application project, and am trying to get it running on my computer (Win 7, VS Web Express 2012), but have never done any ASP or VB before.I have an \[code\]Upload2.aspx\[/code\] file and an \[code\]Upload2.aspx.vb\[/code\] file.\[code\]Upload2.aspx\[/code\] looks like this:\[code\]<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Upload2.aspx.vb" Inherits="Upload2" %>...<asp:FileUpload ID="fuData" runat="server" />\[/code\]\[code\]Upload2.aspx.vb\[/code\] looks like this:\[code\]Partial Class Upload2 Inherits System.Web.UI.Page Private Sub manageUpload() Dim pf As HttpPostedFile = fuData.PostedFile...\[/code\]For some reason, it is giving me an error at fuData:\[code\]'fuData' is not declared. It may be inaccessible due to its protection level.\[/code\]Shouldn't it automatically be able to access the variable from the id on the aspx page?
 
Back
Top