Prince Antony

Prince Antony

  • NA
  • 66
  • 3.2k

How to get Container.ItemIndex+1 in textbox control

Oct 10 2014 12:43 AM
I have problem on below code.
<asp:TextBox ID="tbxCode" runat="server" CssClass="short " Text='<%# Eval("Code") %>'
onclick="LoadPopup('1','<%#Container.ItemIndex+1 %>')"></asp:TextBox>

<asp:TextBox ID="tbxDesc" runat="server" CssClass="medium" Text='<%# Eval("Desc") %>'
onclick="LoadPopup('1','<%#Container.ItemIndex+1 %>')"></asp:TextBox> //have problem because of runat=server

<input type="button" class="popup_button" onclick="LoadPopup('1','<%#Container.ItemIndex+1 %>')"
value=".." />  // working fine
how to solve this. I m using this textbox inside the repeater control.



Answers (1)