Loading ...

Binding long text message to link button in a repeter with formating

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » Binding long text message to link button in a repeter with formating

Binding long text message to link button in a repeter with formating

Posts under the topic: Binding long text message to link button in a repeter with formating

Posted: 9/2/2011

Lurker 245  points  Lurker
  • Joined on: 4/15/2011
  • Posts: 44

Hi,

I have a issue, i want to bind long text message to link button in repeter control with formating

means if message length > 30 then i want to show text eg.Hi sandy, How are you?....

& dispaly full message if user click on linkbutton

for that i uase Mysql query

 SELECT c.`recomend_date`,
CASE WHEN LENGTH(c.`Message`) > 30
    THEN SUBSTRING(c.`Message`,1,27) +'...' 
    ELSE c.`Message` END AS LineDescription, 
c.`Message` AS FullDescription
FROM `tbl_recommend` c where To_user_id=5
ORDER BY c.`recomend_date`;

but it's showing me LineDiscription 0

Please give me your guidence..


Page 1 of 1 (1 items)