I am in the process of porting most of our asp apps. to asp.NET and have come across one headache. The process uses two forms to upload images, check they are valid image files, check to see if there are already any registed within the database and delete the old ones, then upload the new ones and record the path within the database.
It gets to ContentType validation with the line :-
==================================================
Line 90: if ( upl.Form(item).ContentType = "image/gif" OR upl.Form(item).ContentType = "image/jpeg" OR upl.Form(item).ContentType = "image/pjpeg") then
=================================================
and then blows out with:-
=============================================
Public member 'ContentType' on type 'String' not found.
Exception Details: System.MissingMemberException: Public member 'ContentType' on type 'String' not found.
============================================
Perhaps I have been staring at this too long, but something is not making any sense. It all worked fine under asp (new attributes like isReference have replaced old ones like isObject -and the usual stuff that stops asp from functioning under .NET)
Any ideas would be appreciated!