Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Facing issue with FileUpload Control in WebDialogWindow in updatepanel
posted

Hi,

I would appreciate it a lot if someone could please help me with this. 

I have an updatepanel which has a button, which when clicked shows the web dialog window, and within that dialog window I have a file upload control and a button upload to save that file.  FileControl.HasFile is always returning false. What way can I work around this?  I have tried using the <Triggers><asp:PostBackTrigger ControlID="" /></Triggers> of the update panel but get an error that it can't find the control. 

I tried registering the PostBackTrigger through code below. It does not give any error but still the HasFile Property return false.

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
if (scriptManager == null)
{
scriptManager.RegisterPostBackControl(this.btnUpload);

}

What is the way to use FileUpload control inside a WebDialogWindow. ? Any help would be really appreciated.

Thanks ,

Kimsi