I save a long string in the DB, and I want to show it in a text area in my Winforms application.
I want to highlight letters in my string values, and save it in the database, and show the value in text area.
How can I do this?
My code:
insert into table (Description)
select '<b>ערך אחד: <b>' + convert(NVARCHAR, t1.MonthlyReturnAmount) + nchar(13) + nchar(10) +
'<b> ערך שני: <b>' + convert(NVARCHAR, t1.LastPaymentDate) + nchar(13) + nchar(10) +
'<b> ערך שלישי: <b>' + case WHEN t2.IsActive=0 then 'לא' else 'כן' END
from table1 t1
join table2 t2 on t1.id = t2.filed