Hi,
I have a datalist with a template which among other things adds a button to
each item from the SQL Database. I need to set the value of the id field of the record in
the db to the button like this:
<input type=button id='btn_<%# DataBinder.Eval(Container.DataItem, "id"
%>' runat="server" value="Button" class="darkbluegrad">
The problem is I get this error:
' is not a valid identifier
How should I bind the id number to the id???
Thanks,
Matt
I have a datalist with a template which among other things adds a button to
each item from the SQL Database. I need to set the value of the id field of the record in
the db to the button like this:
<input type=button id='btn_<%# DataBinder.Eval(Container.DataItem, "id"
%>' runat="server" value="Button" class="darkbluegrad">
The problem is I get this error:
' is not a valid identifier
How should I bind the id number to the id???
Thanks,
Matt