1 使用标准HTML来进行图片上传 前台代码: 按 Ctrl+C 复制代码 <body> <form id="form1" runat="server"> <div> <table> <tr> <td colspan="2" style="height: 21px" > 使用标准HTML来进行图片上传</td> </tr> <tr> <td style="width: 400px"> <input id="InputFile" style="width: 399px" type="file" runat="server" /></td> <td style="width: 80px"> <asp:Button ID="UploadButton" runat="server" Text="上传图片" OnClick="UploadButton_Click" /></td> </tr> <tr> <td colspan="2" > <asp:Label ID="Lb_Info" runat="server" ForeColor="Red"></asp:Label></td> </tr> </table> </div> </form> </body> 按 Ctrl+C 复制代码 后台代码: