Click here to Skip to main content
15,886,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello

i save my large formatted text in my DataBase using CheckEditor.
when i retrieve this formatted text for display purpose using Lable
it will not Display Text In Formatted.


for Eg.
AAAAAAAAAAAA.
BBBBBBBBBBBB.
CCCCCCCCCCCC.

But I got This Type

AAAAAAAAA.BBBBBBBB.CCCCCCCCC
Posted

1 solution

Have you stored formatted text to your database, as per your example, i think you need to store your text in such manner
C#
AAAAAAAAAA.<br />BBBBBBBBBBB.<br />CCCCCCCCCCC.
then it will display in formatted manner at the time or retrieval
 
Share this answer
 
v2
Comments
Rajnish D mishra 7-Jan-15 2:31am    
if (reader.Read())
{

lblEventName.Text = string.Format("{0}", reader["EditTextContain"].ToString());

}
Tejas Vaishnav 7-Jan-15 2:34am    
I mean, when you are storing your text to your database, at that time you need to store string like this..., not at the time or retrieval
Tejas Vaishnav 7-Jan-15 2:35am    
You need to store your text with all formatting, so it will display with format after retrieval.
Rajnish D mishra 7-Jan-15 3:35am    
when i store to my database it will store correctly as formatted .....but when i retrieve from data base it not show formatted data in label
Tejas Vaishnav 7-Jan-15 3:54am    
what string you store in your database, can you please give sample.

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