Click here to Skip to main content
15,944,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have and Eval in a repeater, and I want to split the result in two columns.

If I have a list off 12, I will have 6 on one column and 6 in the other.

Can I use a Eval to do this?

I have try this:

C#
<%# Eval("deli_navn").ToString().Split('0')[1]%>



/Tina
Posted

1 solution

HTML
'<%# System.Text.RegularExpressions.Regex.Split(Eval("deli_navn").ToString(),"0")[1] %>'
or
HTML
<![CDATA[<%# ((string)Eval("deli_navn")).Split('|') %>]]>
 
Share this answer
 
Comments
tina_overgaard 19-Oct-13 13:16pm    
Thanks

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