scm0sml
asked on
using repeater data for a texbox attribute
Hi,
I have a textbox within a repeater:
As you can see I am trying to set a css class containing a dynamic value.
I'm getting:
The server tag is not well formed.
How can I do this?
I have a textbox within a repeater:
<asp:TextBox ID="txtActionStartDate" CssClass="actionStartDate<%#DataBinder.Eval(Container.DataItem, 'ID')%>" runat="server"></asp:TextBox>
As you can see I am trying to set a css class containing a dynamic value.
I'm getting:
The server tag is not well formed.
How can I do this?
ASKER
thats actually rendering the code as text:
class="actionStartDate<%=D ataBinder. Eval(Conta iner.DataI tem, 'ID')%>" type="text"
class="actionStartDate<%=D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
got my own solution in the end.
Open in new window