Thursday, October 14, 2010

FileUpload Control in Update Panel using ASP.NET AJAX

Generally We face Problem with Fileupload control & tree view when place inside Update control.

This cen be solved in many ways,
1- can use HTML Fileupload control in place of asp.net fileupload control
2-refer
http://www.c-sharpcorner.com/UploadFile/prathore/FileUpload04292009022804AM/FileUpload.aspx
3- U can add trigger in update panel ,if any of the event is not fired.

2 comments:

  1. i have a usercontrol and in that i am placing another user control..which contains this upload control.now i want to upload ..is it uploads?

    ReplyDelete
  2. Hi Naveen,

    I got the same problem once,by replacing that fileupload with HTML fileupload control my problem is solved

    But u can try by any of these following ways.

    1-Have u tried dynamically finding the fileupload control From User Control ?
    2-Once ucan try by placing the fileupload control in Iframe .
    3-U can try by adding Asp button in your control. This will raise the postback event. The asp button ID should be listed as a asp:PostbackTrigger in the trigger section of the updatepanel & that the update panel is registering the asp button as a postback trigger at runtime

    ReplyDelete