Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2006, 06:58 PM
Registered User
 
Join Date: May 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing a control within a repeater

I have a repeater:

<asp:Repeater id="PendPmtRepeater" runat="server">
 <ItemTemplate>
   <tr>
    <td class="small">
      <%# DataBinder.Eval(Container.DataItem, "ApptDate")%></td>
    <td class="small" align="right">
      <%# DataBinder.Eval(Container.DataItem, "Timeslot")%></td>
    <td class="small" align="center">
       <%# DataBinder.Eval(Container.DataItem, "shorthand")%></td>
    <td class="small" align="center">$
       <%# DataBinder.Eval(Container.DataItem, "amount")%></td>
       <td class="small" align="center">
         <asp:Button id="Button1" runat="server"
         OnClick="MyRepeaterButton_Click" Text="Pay" /></td>
  </tr>
 </ItemTemplate>
</asp:Repeater>


I need to hide or show the button depending on the value "amount".

Any ideas?

Thanks

 
Old April 16th, 2006, 12:29 AM
Registered User
 
Join Date: May 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See this link. Works like a charm.
http://www.tek-tips.com/viewthread.c...1218471&page=1






Similar Threads
Thread Thread Starter Forum Replies Last Post
repeater control akssmv ASP.NET 2.0 Basics 1 August 20th, 2008 08:55 PM
Accessing Child Controls of Nested Repeater... Jayahar ASP.NET 2.0 Professional 3 October 11th, 2007 01:24 PM
Repeater Control Dhanapal General .NET 0 April 2nd, 2007 04:50 AM
Repeater Control abdul_owiusa General .NET 0 September 19th, 2005 10:00 AM
Repeater Control abdul_owiusa General .NET 0 August 30th, 2005 04:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.