Users Pricing

forum

Home Forums Bind ID dynamically on a textbox – MindStick

Bind ID dynamically on a textbox

Mark M 2340 11 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.


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md