In ASP.NET 2.0 with C#
I have a repeater bind to XMLdatasource.
I have the following binding:
<asp:Repeater runat="server" ID="RPModels" DataSourceID="XMLModels" >
<ItemTemplate>
<asp:HyperLink ID="HPreview" runat="server" NavigateUrl='<%# XPath("ProdTitle_Url") %>'>
<%# XPath("Stores_Num")%> </asp:HyperLink>
<asp:Button ID="btnComparep" runat="server" Text="Compare" Width="100px"
OnClick="btnComparep_Click
" />
</ItemTemplate>
</asp:Repeater>
I want that in the code behind in the function btnComparep_Click
to get into a string the value that I get in <%# XPath("Stores_Num")%>
How do I get this value in the code behind?
thankyou
Anat
Start Free Trial