File download +ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kirthikaiitm
    New Member
    • Oct 2007
    • 7

    File download +ASP

    Hi,
    I have a webserver which support ASP,VB Script and JScript.
    I want to download file and put in device.
    I referred to web for downloading files.
    But the code had
    Set files=server.cr eateobject('Scr ipting.dictiona ry')

    But my webserver doesn't support 'scripting.dict ionary'

    Is there any reference where i can download files or images without
    'scripting.dict ionary'

    Pls. suggest.i am new to alll.
    If u know any reference website pls. tell us.

    Regards,
    Kirthika
  • markrawlingson
    Recognized Expert Contributor
    • Aug 2007
    • 346

    #2
    I think the problem is your single quotes. Single quotes donate a comment in ASP, so asp probably thinks you're commenting out everything after the opening parentheses and will attempt to run... Set files=server.cr eateobject(

    ...which obviously won't work, and thusly throws an error.

    Try double quotes and let us know if that works.

    [code=asp]
    Set files=server.cr eateobject("Scr ipting.dictiona ry")
    [/code]

    w3schools - dictionary object is a good resource for the dictionary object in ASP.

    Hope this helps.
    Sincerely,
    Mark

    Comment

    • Kirthikaiitm
      New Member
      • Oct 2007
      • 7

      #3
      Originally posted by markrawlingson
      I think the problem is your single quotes. Single quotes donate a comment in ASP, so asp probably thinks you're commenting out everything after the opening parentheses and will attempt to run... Set files=server.cr eateobject(

      ...which obviously won't work, and thusly throws an error.

      Try double quotes and let us know if that works.

      [code=asp]
      Set files=server.cr eateobject("Scr ipting.dictiona ry")
      [/code]

      w3schools - dictionary object is a good resource for the dictionary object in ASP.

      Hope this helps.
      Sincerely,
      Mark

      Hi,
      Sorry i have put double quotes only

      Set files=server.cr eateobject("Scr ipting.dictiona ry")
      It says it doesn't support Scripting.dicti onary
      Is there any reference to dowload file and save without
      Scripting.dicti onary
      Pls. suggest.

      Regards,
      kirthika

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Krithika,

        the dictionary object should be supported by all versions of ASP, but that said, I'm not sure how I would use a dictionary object to download a file. Could you give a little more details of your exact needs? Can you not just put a hyperlink to the file in question on your web page?

        Jared

        Comment

        Working...