Public · Protected · Private
How to "Upload file in a webpage" in asp.net
Type: Public  |  Created: 2008-08-17  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • • HTML server control <input type=file id="myFile" runat=server />. • server side, it is available as. myFile.PostedFile.SaveAs ("DestinationPath") • Form should have the following ENC Type <form enctype="multipart/form-data" runat="server"> setting particular filetypes like *.txt is not allowed. On failure, if page posts back -- user may have to reenter the data. Plan for workarounds.
    2008-08-17 15:48
This blog is frozen. No new comments or edits allowed.