Click to See Complete Forum and Search --> : Uploading & Downloading Files in ASP.net
sharmadeep1980
October 7th, 2003, 04:49 AM
Hi Friends,
I am working on an ASP.net web application.The application will run on Intranet.In my module to upload and downlaod thr files to and from the server as according to client action.
So anybody can plz provide me with good links or materials
Thanks in advance
Deepak
sameerteni
October 8th, 2003, 08:39 AM
Hello,
Even I am also interested in same functionality. I know one way. Use smartUPload DLLs but which is not very clean or easy solution. So anybody knows other way, kindly provide the material or code.
Thanks and Regards,
Sameer
Rohit Kukreti
October 10th, 2003, 03:32 AM
Hi,
I can provide u with the code to upload the files to the srvr and i know u can force download using asp.net but am not very sure of this so search the net for this. Herez the code
This is the way ur form tag shud look like
<form id="Form1" method="post" encType="multipart/form-data" runat="server">
Insert a htmlfile input box
<INPUT id="getfile" style="Z-INDEX: 101; LEFT: 94px; WIDTH: 571px; POSITION: absolute; TOP: 134px; HEIGHT: 22px" type="file" size="76" name="file1" runat="server">
On click of he btn or anywhere u want the file to b uploaded write the code below
HttpPostedFile a;
a = getfile.PostedFile;
a.SaveAs(Server.MapPath(strFileName)); //path for the file to b saved
ur file wud b uploaded to the srvr.
hope this helps
---
Rohit
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.