Hi,
I want to upload video file through upload control, which is in update panel. but upload control is not catching has file property. i mean, in update panel, file is not uploading...
Please anybody, help...Thanx
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manikavelu VelayuthamRank #413 · 6K reputationPosted Oct 6, 2010, 10:13 PM EDT
Otherwise File Upload wont work in Update Panel.
Button2 -> Which you click once you select the file from the dialog box.
<Triggers>
<asp:PostBackTrigger ControlID="Button2" />
Triggers>
Vaibhav BhosaleRank #7,584 · 238 reputationPosted Oct 6, 2010, 10:42 PM EDT
i have change file btn, which is used to select fie by making upload cntrl visible true. then i m trying to save all records...Please send me any apropriate code.
Thanx.
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Oct 7, 2010, 12:24 AM EDT
see the below link it have some tutorial sites
http://www.dotnetspider.com/forum/160289-How-save-video-files-ASP-Net-using-C.aspx
Suthish NairRank #92 · 22.8K reputationPosted Oct 7, 2010, 2:17 AM EDT
Put the FileUpload outside the UpdatePanel.
Vaibhav BhosaleRank #7,584 · 238 reputationPosted Oct 7, 2010, 2:30 AM EDT
Actually, I am trying to save all records & uploaded file (after selecting by browse) in database through only one btn SAVE. I used ur soln for save btn but it's not working..
i have change file btn, which is used to select fie by making upload cntrl visible true. then i m trying to save all records...Please send me any apropriate code.
Suthish NairRank #92 · 22.8K reputationPosted Oct 7, 2010, 3:20 AM EDT
Vaibhav BhosaleRank #7,584 · 238 reputationPosted Oct 7, 2010, 3:36 AM EDT
i used this code in both update pnl
<Triggers>
<asp:PostBackTrigger ControlID="change_btn" /> Triggers>
Suggest any code. thanx
Suthish NairRank #92 · 22.8K reputationPosted Oct 7, 2010, 4:18 AM EDT
Search for more samples on web. Also, the use of AsyncPostBackTrigger.
Secondly, how to solve your issue..
1. Place FileUpload, Button control outside UpdatePanel. This way you will able to get File Path.
2. refer this article: Disable a submit button during Post Back