1
Answer

How to get Container.ItemIndex+1 in textbox control

Prince Antony

Prince Antony

10y
830
1
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)