UPLOAD FILE IN ASP.NET

Posted by Falak under ASP.NET on 9/3/2009 | Views : 1236 | Status : [Member] | Replies : 3
MY QUESTION IS
HOW TO UPLOAD FILE IN ASP.NET USING VB.NET?




Responses

Posted by: Vuyiswamb on: 9/3/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Falak

You must use the FileUpload Control in your Tool Box.

look at this

http://msdn.microsoft.com/en-us/library/aa479405.aspx


Thank you for Posting at Dotnetfunda

Vuyiswa Maseko



Thank you for posting at Dotnetfunda
[Administrator]

Falak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 9/3/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning Falak

Falak Privately Wrote :
mam i want when i upload the file file store in server folder n file name store in table
tell me how it can be possible
i m waiting



When you use the Filepload Control , the Contents that you Upload will be stored in your Application Directory. Now if you want to use a certain folder in your server you can do something like this

FileUpload1.SaveAs("C:\\Uploads\\" + FileUpload1.FileName);


One more thing,Falak I am a Man , the woman you see in the Profile is my Wife to be :)

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Falak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rtpharry on: 9/4/2009 [Member] [MVP] Bronze

Up
0
Down
A great little project that i have seen but not had a chance to use in a project yet is this Silverlight upload component.

http://www.michielpost.nl/Silverlight/MultiFileUploader/

There are several advantages to silverlight uploading as you can select many files and get proper upload progress data.

You also have access to the files contents before you upload so in theory if it was for example an image upload then you could resize the image before you upload and save uploading a massive image when you only want a thumbnail.

This saves on your bandwidth, creates a faster experience for the user (uploading less) and offloads the cpu power used to resize from your server to the client.

Falak, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response