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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Oct 7, 2010, 8:18 AM
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
Vaibhav BhosalePosted Oct 7, 2010, 7:36 AM
i used this code in both update pnl
<Triggers>
<asp:PostBackTrigger ControlID="change_btn" /> Triggers>
Suggest any code. thanx
Suthish NairPosted Oct 7, 2010, 7:20 AM
Vaibhav BhosalePosted Oct 7, 2010, 6:30 AM
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 NairPosted Oct 7, 2010, 6:17 AM
Put the FileUpload outside the UpdatePanel.
Gomathi PalaniswamyPosted Oct 7, 2010, 4:24 AM
see the below link it have some tutorial sites
http://www.dotnetspider.com/forum/160289-How-save-video-files-ASP-Net-using-C.aspx
Vaibhav BhosalePosted Oct 7, 2010, 2:42 AM
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.
Manikavelu VelayuthamPosted Oct 7, 2010, 2:13 AM
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>