我在带有母版页的asp.net 4.0中使用Ajax AsyncFileUpload控件,我收到文件无效的错误.如果我在没有母版页的情况下使用它,它就有效.使用母版页如果我设置
ClientIDMode="AutoID"
它开始工作. ClientIDMode的目的是什么以及为什么没有带有母版页的ClientMode,AsyncFileupload无法正常工作.
请建议.
解决方法
The ClientID value is generated by concatenating the ID values of each parent naming container with the ID value of the control. In data-binding scenarios where multiple instances of a control are rendered,an incrementing value is inserted in front of the control’s ID value. Each segment is separated by an underscore character (_). This algorithm was used in versions of ASP.NET earlier than ASP.NET 4.
从MSDN起
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。