Accessing input type file at server side in asp.net

后端 未结 5 536
别跟我提以往
别跟我提以往 2021-01-03 02:57

I am using the tag to upload a file to the server. How do I access the file at the server side and store it at the server? (The fi

5条回答
  •  太阳男子
    2021-01-03 03:28

    If you dont want to use the FileUpload control in the toolbox, Give your input an ID then use form[id] to access the input field and cast it to HtmlInputFile.

    example here: http://www.codeproject.com/KB/aspnet/fileupload.aspx

提交回复
热议问题