Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have multiple updatepanels on page. Out of them there is a fileupdate control in a specific panel. To upload document i have to register the submit button using ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btnDocument). But on clicking this button it is refreshing all updatepanels.

What I have tried:

I want to update only the updatepanel that contains fileupload control. I tried a lot but not able to do. How to do this. Please help
Posted
Updated 30-Mar-17 21:19pm
Comments
F-ES Sitecore 31-Mar-17 4:20am    
FileUpload controls don't work inside an updatepanel so you're not going to get this working anyway. Google for how to upload a file asynchronously via asp.net.

1 solution

Set the UpdateMode as Conditional for all the UpdatePanels
UpdateMode="Conditional" 

and update/refresh the particular UpdatePanel by calling Update method
updatepanelName.Update();

refer this What is the main purpose of UpdateMode in UpdatePanel ? | The ASP.NET Forums[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900