troubleshooting Question

read repeater bindings through code behind

Avatar of ANAT2403
ANAT2403Flag for Israel asked on
.NET ProgrammingC#ASP.NET
1 Comment1 Solution1331 ViewsLast Modified:
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" >
       <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"   />
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?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros