Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: asp:repeater calling subroutine


Message #1 by "Jude Camville" <jcamville@y...> on Wed, 10 Jul 2002 15:52:44
I want to call a subroutine within a repeater that passes a value from the 
database. I've been fiddling around with the syntax and can't get it to 
work.Here is my latest attempt:

  <ItemTemplate>
    <tr>
      <td><asp:LinkButton Runat="Server" OnClick="DisplayWorks(" & <%# 
Container.DataItem("CompID")%> & ")">
        <%# Container.DataItem("LastName") %>
      </asp:LinkButton></td>
      <td><%# Container.DataItem("FirstName") %></td>
    </tr>
  </ItemTemplate>

Can anyone help?
Jude

  Return to Index