我在另一个转发器内部有一个转发器..并且子转发器需要加载父转发器项..所以,在子转发器sqldatasource选择我需要父转发器项..有什么方法可以得到它吗?
<asp:Repeater runat="server" ID="RpFacility" DataSourceID="DSFacility" >
<ItemTemplate>
<div>
<asp:Label runat="server" ID="RpGIDProp"class="nodisplay"Text='<%#DataBinder.Eval(Container.DataItem,"GID`enter code here`)%>' />
<asp:Repeater runat="server" ID="RpFacilityValue" DataSourceID="DSFacilityValue">
<ItemTemplate>
<label><%# DataBinder.Eval(Container.DataItem,"PropertyName")%></label>
</ItemTemplate>
</asp:Repeater>
</div>
</ItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="DSFacility" runat="server" ConnectionString="<%$ ConnectionStrings:arrecoconnection %>"
OnSelecting="DSProdPic_Selecting" SelectCommand="">
<SelectParameters>
<asp:QueryStringParameter Name="PIDREf" QueryStringField="PIDREf" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="DSFacilityValue" runat="server" ConnectionString="<%$ ConnectionStrings:arrecoconnection %>"
OnSelecting="DSFacilityValue_Selecting" SelectCommand="">
<SelectParameters>
<asp:QueryStringParameter Name="PIDREf" QueryStringField="PIDREf" Type="Int32" />
<asp:QueryStringParameter Name="GIDRef" QueryStringField="GIDRef" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
我需要从父级转发器获取GID ..