Fileupload control in asp.net Part 30

27
2



Text version of the video

Slides

All ASP .NET Text Articles

All ASP .NET Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic

In this video we will discuss about fileupload control. FileUpload control is a combination of a text box and a browse button that enable users to select a file to upload to the server.

Nguồn:https://wijstaanvooronzegrondrechten.org/

Xem Thêm Bài Viết Khác:https://wijstaanvooronzegrondrechten.org/cong-nghe

27 COMMENTS

  1. thank you for your great tutorials. I have one question what if I want to replace the existed uploaded file with the new file uploaded by the fileupload.?

  2. My debug option r always disable after that when I debug first time pls help me out how to enable debug for continue????

  3. Superb. Excellent explanation. It's very useful for learners. Your way of teaching is very good. Keep it up. Please upload like this controls in asp. Net, c# as you can. Thank you.

  4. Sir how can I get fileupload value in edit mode in asp.net form. Just want to show in gridview and retrieve value in form.
    Plz help me sir. It is urgent

  5. Well there is a file size upload limit. I can't get past that limit. I tried to modify the web.config file. Some Photoshop PSD files can be 50MG. So I took off the psd and ai extensions from the C# code The lblMessage.Text for file size is not showing a netframework yellow and white page is showing up.

  6. I followed this tutorial but I modified the code to suit my purpose. I wanted to upload 6 different types of images. Including Photoshop and Illustrator files. When it came time to write the codes for maximum file size I was getting an error on int. Visual Studio didn't give me the autocomplete of int. It was giving me Init. I worked on this a good 45 minutes. The problem or error was so simple I was typing Int instead of int. Your C# code worked great. I wasn't writing the code on an IIS localhost server. I was writing the code on a Production IIS web server.

  7. I have 3 FileUpload controls and all are set to accept images and allow nulls. The problem here is I have to upload something to all three or else it gives an exception saying the path was not found. Can someone help me out in this?

  8. I love your tutorials! You make me feel relaxed, no stress attached to learning time 🙂 You are the best teacher ever!

    Be careful with upload, it does not protect with files with the same filename, the new file will simply overwrite the older one.

  9. Can I just say your videos have saved me more than a few times?

    I did this in my file program for the length of the file.

    System.IO.FileInfo f = new System.IO.FileInfo(Fileupload1.PostedFile.FileName);
    When I went to check the size of the file, I used the f.Length, and it didn't work in Chrome or Firefox. It only worked in IE. The Fileupload1.PostedFile.ContentLength worked perfectly across all browsers. So, I thank you for that.

LEAVE A REPLY

Please enter your comment!
Please enter your name here