Question : Put control inside of AJAX UpdatePanel, now get Type 'System.Web.UI.UpdatePanel' does not have a public property named 'FileUpload'

I just added the UpdatePanel to a form.  Now it complains about the FileUpload that was there before, but is now inside the UpdatePanel.

I did add the ScriptManager to the form.

I just checked, and the AjaxContorlToolkit is one of the references.

What did I mess up?

Thanks!
1:
2:
3:
4:
5:
6:
7:
<div>
             <asp:UpdatePanel ID="AjxUpImage" runat="server">
                <asp:FileUpload ID="fileupload"  CssClass="fill_box" runat="server" />
                 
             </asp:UpdatePanel>
             &nbsp;
  </div>

Answer : Put control inside of AJAX UpdatePanel, now get Type 'System.Web.UI.UpdatePanel' does not have a public property named 'FileUpload'

Looks like I was missing the ContentTemplate.  The attached version compiles.

Thanks for looking!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
<div>
             <asp:UpdatePanel ID="AjxUpImage" runat="server">
                <ContentTemplate>

                <asp:FileUpload ID="fileupload"  CssClass="fill_box" runat="server" />
                 <asp:Image runat="server">
                 </asp:Image>
                 <asp:Button runat="server" ID="btnClearImage" Text="Clear" />
                 </ContentTemplate>

             </asp:UpdatePanel>
             &nbsp;
  </div>
Random Solutions  
 
programming4us programming4us