我想添加两个级别的嵌套DataList,以便第二级数据源将参数作为第一级的ID。
我怎样才能做到这一点?
这是我的代码:
</tr>
</table>
<br />
</ItemTemplate>
<SelectedItemStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
</asp:DataList>
<asp:TextBox ID="TextBox1" runat="server" Height="63px" Width="619px"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Height="34px" Text="Comment" Width="116px" />
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Social_NetworkConnectionString %>" SelectCommand="MSP_PostGetComments" SelectCommandType="StoredProcedure">
<SelectParameters>
<!--Want to add parametar from The first Level!-->
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>