Want to know the meaning of a particular ASP code

  • Hi,

    I am working on an asp code and encountered this line- myFile.ToDatabase Connect, mySQL.

    Does anyone know its significance and what does it actually do ? I am also not able to find any Todatabase.asp file in the solution.

    Any help in this regard would be appreciated.

    Thanks,

    Paul

  • Any clue where myFile comes from?

    It looks like a databasecall (ToDatabase) passing up the connectionstring (Connect) and the sql to execute (MySQL). Or MySQL is a parameter/constant to indicate which type of database it is (mysql, mssql, oracle, ...)

  • Jo Pattyn (9/2/2011)


    Any clue where myFile comes from?

    It looks like a databasecall (ToDatabase) passing up the connectionstring (Connect) and the sql to execute (MySQL). Or MySQL is a parameter/constant to indicate which type of database it is (mysql, mssql, oracle, ...)

    Agreed. You're not going to find a Todatabase.asp. It sounds like ToDatabase is a property of myFile, whatever that is.

    Are there any lines before it that might indicate what myFile is?

    Also, is there an option explicit line at the beginning of the code? (I'm assuming that this is server-side ASP.) If there isn't, try putting one in. If any of your variables are undeclared, they will fail with the option explicit statement. That might help you track it down.

    +--------------------------------------------------------------------------------------+
    Check out my blog at https://pianorayk.wordpress.com/

  • This seems to be related to AspUpload component .

    ToDatabase is a method of the UploadedFile object.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply