943,652 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 694
  • ASP.NET RSS
Oct 6th, 2008
0

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

Expand Post »
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....
Reputation Points: 10
Solved Threads: 0
Light Poster
nice_true is offline Offline
28 posts
since Sep 2007
Oct 9th, 2008
0

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

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zezo is offline Offline
6 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: How to add eventhandler..
Next Thread in ASP.NET Forum Timeline: asp:linkbutton





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC