You've set
btnUpload
to be both a
PostBackTrigger
and an
AsyncPostBackTrigger
. It should only be a
PostBackTrigger
, since file uploads don't work via AJAX in an
UpdatePanel
.
You also need to make sure you have the correct
enctype
set on your
<asp:form>
:
public void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Page.Form.Enctype = "multipart/form-data";
}
}