Advertisement

10.25.2007 at 05:47AM PDT, ID: 22917318
[x]
Attachment Details

read repeater bindings through code behind

Asked by ANAT2403 in .NET Framework 2.x, C# Programming Language, Programming for ASP.NET

Tags: , ,

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
AnatStart Free Trial
[+][-]10.26.2007 at 01:24AM PDT, ID: 20153999

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, C# Programming Language, Programming for ASP.NET
Tags: repeater, code, behind
Sign Up Now!
Solution Provided By: ShahzadAtta
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628