Using of control FileUppload has some specialities – there must be made a PostBack on your event. But using UpdatePanel there’s no PostBack event on client click. For correct work you should use PostBackTrigger.

In this example uploaded images will be saved with unique name and displayed on page.

So how to use it. Create a webForm page named fileUploadInUpdatePanel.aspx and add to it the code between tag FORM.



And in codebehind file fileUploadInUpdatePanel.aspx.cs add this handler