hi,
This is a bit complex..
I have 2 nested repeaters.. and 3 datasources(in markup)
<asp:SqlDataSource ID=data1 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select MatrixRiskFactorId,Name,MaxWeight from Matrixriskfactor" ></asp:SqlDataSource>
<asp:SqlDataSource ID=data2 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select * from MatrixQuestion" ></asp:SqlDataSource>
<asp:SqlDataSource ID=data3 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand = "select MatrixRiskFactorId,Value,text from MatrixRiskFactorScore where MatrixRiskFactorId=2">
<repeater id=rep1 datasourceid=data1>
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "Name")%>
<br/>
<repeater id=rep2 datasourceid=data2>
<headertemplate>
<table>
<th>Question</th><th>Score</th>
<itemtemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem,"text") %>
</td>
<td>
<asp:RadioButtonList id=radiolist1 runat=server DataSourceID=data3 DataTextField="text" DataValueField="value" ></asp:RadioButtonList>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</itemtemplate>
</itemtemplate>
</repeater>
==================================================
as you can see in data3.. the where clause has a fixed value...(2)
I want to change it dynamiacally according to data1 or rep1 child control property...
i know its possible.. i just dont know how..?? :(
may be i'll have to add paramete.. but how do i set the parameter value to be depending on data1 or rep1 child control property ??
==================================================