forum

Home / DeveloperSection / Forums / Bind ID dynamically on a textbox

Bind ID dynamically on a textbox

Mark M198811-Dec-2014

I have

<asp:TextBox ID="txtBidAmmount<%#Eval("id") %>" Width="250" runat="server"></asp:TextBox>

That wouldn't work and I have read some options that I have to replace the " with ', so I did:

<asp:TextBox ID='txtBidAmmount<%#Eval("id") %>' Width="250" runat="server"></asp:TextBox>

But I get:

Parser Error Message: 'txtBidAmmount<%#Eval("id") %>' is not a valid identifier.


Updated on 12-Dec-2014

Can you answer this question?


Answer

2 Answers

Liked By