You can create upload web page many different ways using many different controls.
Here is a sample code showing how to create simple upload page in ASP.NET.
<% @Page Language="VisualBasic" %> <html> <head> </head> <body> <script language="VisualBasic" runat="server"> Sub btnUploadTheFile_Click([Source] As Object, evArgs As EventArgs) If not uplTheFile.PostedFile is nothing Then Try uplTheFile.PostedFile.SaveAs(Server.MapPath("uploaded.xml")) txtOutput.InnerHtml = "File uploaded successfully" Response.Redirect("verify.asp") Catch e As Exception txtOutput.InnerHtml = "Error uploading: <br>" + e.ToString() End Try End If End Sub </script> <table> <form enctype="multipart/form-data" runat="server" ID="Form1"> <tr> <td width="85px">Select file:</td> <td width="250px"><input id="uplTheFile" type=file runat="server" NAME="uplTheFile"></td> </tr> </form> </table> <br/> <input type=button id="btnUploadTheFile" value="Upload file and verify" OnServerClick="btnUploadTheFile_Click" runat="server" NAME="btnUploadTheFile"> <span id=txtOutput style="font: 8pt verdana;" runat="server" /> </body> </html>
(c) CREA 2002-2007 www.creasign.si