Problem with ASP:Fileupload

M

mo

Hi,

After upgrading from ASP.Net 1.1 to 2.0 I am getting the follwoing
error when I try to see if a fileupload has a file:

Compiler Error Message: CS0038: Cannot access a nonstatic member of
outer type 'ASP.NewListing_aspx' via nested type
'ASP.NewListing_aspx.WebForm1'

Source Error:



Line 65: {
Line 66: // Check to see if file was uploaded
Line 67: if( filMyFile.PostedFile != null )
Line 68: {
Line 69: // Get a reference to PostedFile object


Any Ideas?

Thanks,
Mo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top