如何将 DataView 参数与下拉列表的值进行参数绑定?
我有一个数据视图 Web 部件,它是一个仪表板。仪表板的值是通过以 XSL 编码的不同算法获得的。
我创建了一个 DataView 参数,用作算法中的变量。 我的要求是将所选下拉列表的值赋予此参数。或者更确切地说,我如何将它与下拉选择的值绑定。
DropDownList runat="服务器" id="DropDownList1" AutoPostBack="True" DataValueField="Financial_x0020_Year" DataTextField="Financial_x0020_Year" DataSourceID="spdatasource1">
是为 dadropdown 列表生成的代码!
在参数绑定中我尝试执行以下操作;
ParameterBinding Name="Paramtervariable" Location="None" DefaultValue="DropDownList1.SelectedValue
我的语法错误吗? 我必须在地点提供任何东西吗?默认情况下它是 None - Location 代表什么?
好心帮助。
I have a dataview webpart, which is a dashboard. the value of the dashboard is obtained through different algorithms which are coded in XSL.
I created a DataView parameter which is used as a variable in the algorithm.
My requirement is to give the value of the drop down selected to the this paramter. or rather how can i bind it with the drop down selected value.
DropDownList runat="server" id="DropDownList1" AutoPostBack="True" DataValueField="Financial_x0020_Year" DataTextField="Financial_x0020_Year" DataSourceID="spdatasource1">
is the code generated for a dadropdown list !!
in the parameter binding i try doing the below;
ParameterBinding Name="Paramtervariable" Location="None" DefaultValue="DropDownList1.SelectedValue
Am i wrong in the syntax ?
Do i have to give anything in the Location ? by defualt it came as None - whats that Location stands for ?
KIndly help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
位置不应为 none
位置应为
Location="Control(ControlID)"
DefaultValue = "位置中的值为 Null 时的默认值"
Location should not be none
Location should be
Location="Control(ControlID)"
DefaultValue = "Default Value in case Value from location is Null"