开发者

how to do parameter binding of a DataView Parameter with Value of a drop down list ?

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.


Location should not be none

 <ParameterBinding Name="Param1" Location="Control(savebutton1)" DefaultValue="test"/>

Location should be

Location="Control(ControlID)"

DefaultValue = "Default Value in case Value from location is Null"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜