Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir,

For Example I want to save a paragraph into SQL and want to display/print it on another page.
Like ...

Tab Augumentin     625mg
Tab Levoflox
Tab Doxibid        200mg             OD
Nebulization with budecort & Duolin  BD


Want to Save this paragraph and print it in similar format.
Posted
Updated 27-Jan-14 20:38pm
v2
Comments
ZurdoDev 29-Jan-14 21:51pm    
Where are you stuck?

1 solution

Store your HTML in a NVARCHAR(max) column.

eg:
SQL
insert into yourtable (detail) values('Tab Augumentin&nbsp; &nbsp; &nbsp; 625mg</br>
Tab Levoflox<br/>
Tab Doxibid&nbsp;&nbsp; &nbsp; 200mg&nbsp; &nbsp; &nbsp; OD<br/>
Nebulization with budecort & Duolin  BD<br/>')

C#
//in front end display your values in label or whatever control you want. it will display forllowing output.

Tab Augumentin 625mg
Tab Levoflox
Tab Doxibid 200mg OD
Nebulization with budecort & Duolin BD

hope this will help
thanks
 
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