Wednesday, March 25, 2009

FileUpload control within an Update Panel

The FileUpload control is not working within the Update Panel control, but there is a workaround:

Add the following code to the Page_Load event of your page:

ScriptManager.GetCurrent(Page).RegisterPostBackControl(cmdUploadPicture);

Where cmdUploadPicture the ID of button is, used to Upload the File.

No comments:

Post a Comment