asp.net - ASP Textbox CSS and Data Binding Expression Issue -


i have asp textbox , i'm trying add style caldatepicker along databinding expression within same cssclass attribute.

below example of code trying work. ideas?

<asp:textbox id="datevalue" cssclass='<%# showfieldrequired(eval("required"))%>  + "caldatepicker"' runat="server"></asp:textbox> 

did try:

cssclass='<%# showfieldrequired(eval("required"))%> caldatepicker'  

or:

<asp:textbox id="datevalue" cssclass='<%# showfieldrequired(eval("required")) + " caldatepicker"%>' runat="server"></asp:textbox> 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -