Click here to Skip to main content
15,942,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have binded some values in the literal control inside my repeater...

<asp:Literal ID="lit_eng_title" runat="server" Text='<%# DataBinder.Eval(Container,"Dataitem.name_e")%>'>


But i need to apply css for the text......i dono how to add css class for the literal...please help me
Posted
Comments
riodejenris 29-Mar-12 6:18am    
pimpiliki pilappeeee....
idhris2011 29-Mar-12 6:21am    
waste fellow da neeeeee

try to add css...
make one hidden column with ID while accessing it the ID should be generated and procesw to be move on....
 
Share this answer
 
Comments
idhris2011 29-Mar-12 6:22am    
can u pls show mw a demo of adding css classs into literal control........
Use direct div or span instead of Literal here.
HTML
<![CDATA[<%# DataBinder.Eval(Container,"Dataitem.name_e")%>]]>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900