please help me
-
hi.. i want to let the cutomer of my site to upload files to my server .. how can i do it.. Zakareya Sawalha
Hi, Use the HtmlInputFile server control to handle uploading binary or text files from a browser client to the server. File upload works with Microsoft Internet Explorer version 3.02 or later. Note The Enctype property of an HtmlForm must be set to "multipart/form-data" for this control to work properly.
Sub Button1_Click(Source As Object, e As EventArgs) If Text1.Value = "" Then Span1.InnerHtml = "Error: you must enter a file name" Return End If If Not (File1.PostedFile Is Nothing) Then Try File1.PostedFile.SaveAs(("c:\temp\" & Text1.Value)) Span1.InnerHtml = "File uploaded successfully to **c:\temp\" & _ Text1.Value & "** on the Web server" Catch exc As Exception Span1.InnerHtml = "Error saving file **c:\temp\" & _ Text1.Value & "** " & exc.ToString() End Try End If End Sub 'Button1_Click
Juno MCSD.NET, MCDBA, MCSE ---------------------------------------------------------- Support Team of EasyDotNet, INC. http://www.EasyDotNet.com DataForm.NET - The most powerful data entry web server control for ASP.NET -
hi.. i want to let the cutomer of my site to upload files to my server .. how can i do it.. Zakareya Sawalha