I have a wizard wrapped in UpdatePanel. Second page of the wizard contains FileUpload. I have a button on the page that causes a full post-back. The weird thing is that the first post back triggered by the button results in empty FileName of FileUpload on the server side (HasFile is false). The second and following clicks on the same button work as expected (i.e. FileUpload contains a valid FileName).
Also, if I move the FileUpload control to the first wizard page then everything works fine.
Could someone please let me know what might be causing this strange behaviour?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax.aspx.cs" Inherits="TestAjax" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID=&qu
View Complete Post