Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
user will enter his profile summary in a webform. text will be formatted with bold, string, underline stuffs. hw to store this type data in sql server table.

sample text:
<big>What is Lorem Ipsum?</big>
Lorem Ips<small>um is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dumm</small>y text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).


Where does it come from?
<big>Contrary</big> to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur,


What I have tried:

Table_Profile

Columns
emp_id
profile_summary
Posted
Updated 31-Oct-20 23:24pm

1 solution

You are using HTML formatting - so just keep the whole HTML as a string, and save that to an SQL column as a parameter, just like any other string.

When you pull it back, it's still HTML so it's still formatted ready for web display.
 
Share this answer
 

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