AjaxControlToolkit Asyncfileupload with main page not working

I am using Ajax AsyncFileUpload in asp.net 4.0 with the main page and I get the error that the file is not valid. If I use it without the main page, it works. With main page If I installed

ClientIDMode="AutoID" 

He starts to work. What is the purpose of ClientIDMode and why AsyncFileupload does not work without ClientMode with the main page.

Please offer.

+4
source share
2 answers

The ClientID value is generated by combining the identifier values โ€‹โ€‹of each parent naming container with the identifier value of the control. In data binding scenarios where multiple instances of the control are displayed, an extra value is entered before the control identifier value. Each segment is separated by an underscore (_). This algorithm was used in versions of ASP.NET earlier than ASP.NET 4.

From MSDN

+1
source

The client side of the script got confused because it could not find the predicted ClientID .

0
source

All Articles