如何在select语句中引用控件作为where语句的值
SqlDataSource1得到一个id的值如<%# Bind("id") %> 怎么把它传到SqlDataSource2里作为where的条件?
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:hgjsjConnectionString %>" SelectCommand="SELECT * FROM [表一]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:jConnectionString %>" SelectCommand="SELECT * FROM [表二] where id2=(这里怎样表示上面得到的id)" ></asp:SqlDataSource>