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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -