找不到ID为'spdatasource'的控件 [英] A control with ID 'spdatasource' could not be found

查看:47
本文介绍了找不到ID为'spdatasource'的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用XSLT列表视图Webpart.并且我添加了SPDropdownlist.并想将dropdownlist的选定项存储到sharepoint列表项.但是出现如下错误
"ff16_new"的DataSourceID必须是IDataSource类型的控件的ID.找不到ID为"spdatasource1"的控件.

和dropdownlist数据源是

Hi to all,

I am using XSLT list view webpart.And i added SPDropdownlist .And want to store the selected item of dropdownlist to sharepoint list item .But getting error as below
The DataSourceID of ''ff16_new'' must be the ID of a control of type IDataSource. A control with ID ''spdatasource1'' could not be found.

and dropdownlist datasource is

<SharePoint:DVDropDownList  runat="server" id="ff16{$Pos}" selectedvalue="{@State}"

 __designer:bind="{ddwrt:DataBind('i',concat('ff16',$Pos),'SelectedValue','SelectedIndexChanged',
'ID',ddwrt:EscapeDelims(string(@ID)),'@State')}" datasourceid="spdatasource4" datatextfield="State"

 datavaluefield="State" />



希望有人能帮助我



Hope some one will help me

推荐答案

Pos}" 选定值 {@ State}" __ designer:bind =" {ddwrt:DataBind('i',concat('ff16',
Pos}" selectedvalue="{@State}" __designer:bind="{ddwrt:DataBind('i',concat('ff16',


Pos),'SelectedValue','SelectedIndexChanged', 'ID',ddwrt:EscapeDelims(string(@ID)),'@ State')}" datasourceid =" 数据文本字段 =" datavaluefield =" 状态" /
Pos),'SelectedValue','SelectedIndexChanged', 'ID',ddwrt:EscapeDelims(string(@ID)),'@State')}" datasourceid="spdatasource4" datatextfield="State" datavaluefield="State" />



希望有人能帮助我



Hope some one will help me


这篇关于找不到ID为'spdatasource'的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆