preserve formatting when entering data into tables......

Reply

Join Date: Sep 2007
Posts: 28
Reputation: nice_true is an unknown quantity at this point 
Solved Threads: 0
nice_true nice_true is offline Offline
Light Poster

preserve formatting when entering data into tables......

 
0
  #1
Oct 6th, 2008
hello!

I would like to know the method of preserving the format of text when entering it into the databse, so that the same format is restored when data is retrieved bak from the database.

for example if I write

hello world
good morning
how are you


all the three lines should be entered with the same formatting in the database table,
also, when i retrieve the value, it should be displayed in the same format...

thanks a lot in advance....
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 6
Reputation: zezo is an unknown quantity at this point 
Solved Threads: 0
zezo's Avatar
zezo zezo is offline Offline
Newbie Poster

Re: preserve formatting when entering data into tables......

 
0
  #2
Oct 9th, 2008
I Think it is impossible as formatting of text is designed from application
but there is one way , you make function to get the formate "font name,color, size" of the text and insert it concatenated with text into database.
and make another function to check the concatenation and formate when you select the text from database again and give this formate to the text property in your application to display as you need but be sure to hide the formate name from user.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum


Views: 546 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC