加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

.net – AjaxControlToolkit Asyncfileupload,主页无法正常工作

发布时间:2020-12-16 02:46:57 所属栏目:百科 来源:网络整理
导读:我在带有母版页的asp.net 4.0中使用Ajax AsyncFileUpload控件,我收到文件无效的错误.如果我在没有母版页的情况下使用它,它就有效.使用母版页如果我设置 ClientIDMode="AutoID" 它开始工作. ClientIDMode的目的是什么以及为什么没有带有母版页的ClientMode,As
我在带有母版页的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起

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读