Using a value from the datasource as a parameter

  • Thread starter Thread starter Tommy
  • Start date Start date
T

Tommy

Is it possible to use the value from the asp snip below as a parameter to
the GetPriceValue() function on the line above it?

<asp:TextBox id="txtPrice_1_100" width="30px" runat="server" Text='<%#
GetPriceValue(1, 100) %>'></asp:TextBox>

<%# Container.DataItem("fipk") %>

I need to insert pass my function the primary key of the row that the rest
of the controls are being bound from. The container.dataitem is good on this
line as it is the datasource of my repeater.

Thanks in advance for any help.

Tommy
 
Sorry, I suppose I should have said that this is for a control that is in a
nested repeater.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top