General discussion

  • Creator
    Topic
  • #2175316

    Urgnet plz

    Locked

    by aamirjavied ·

    Hi,
    I have site of artical , i give option site that user uplaod artical file like browse style simply browse fiel and uplaod ..i want that user simply give dir path and application upload all file auto witch he find in this dir..is it possibal in asp.net…if yes then plz how?

All Comments

  • Author
    Replies
    • #3250852

      Reply To: Urgnet plz

      by thirumalai_c_b ·

      In reply to Urgnet plz

      hi,

      you can use microsoft scripting runtime library and map the folder. then use for each command to read files one by one and upload the same.

    • #3174906

      Reply To: Urgnet plz

      by amoljpatil ·

      In reply to Urgnet plz

      – Use the HTML, File Field control.
      – Suppose ur File Field contorl name is : htxtFileField.
      – htxtFileField.PostedFile.FileName will give you the path & name of uploaded file.
      – htxtFileField.PostedFile.SaveAs(““) method will save the file in the specified path.
      – You can config this path into web.config also.

      Cheers,

      Amol

Viewing 1 reply thread