Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a rich textbox i want to insert a text which is hyper linked in sql server so, please help me.
Posted
Updated 11-Dec-14 21:25pm
v2
Comments
cserakeshcseranjan 12-Dec-14 1:30am    
help me.
What is the issue? You should take the whole content and save in Database.
cserakeshcseranjan 12-Dec-14 3:02am    
Dear my issue is while i am storing data in database but it accepting only simple data.b ut it is not accepting html tags like bold.
Shweta N Mishra 12-Dec-14 3:25am    
add more details, e.g. whats there in your textbox content and what values you want to store it in SQL
Marcin Kozub 12-Dec-14 3:29am    
Can you share your code? What have you tried already? Do you have only link in RichTextBox or there is more text and you want to find link and then save it to DB?

cserakeshcseranjan wrote:
while i am storing data in database but it accepting only simple data.b ut it is not accepting html tags like bold.


It depends on database type. The field which holds rtf/html data should be: BLOB, CLOB, MEMO data type...

Please see:
http://www.datanamic.com/support/storing-rtf-in-db.html[^]
Store RTF Data in a SQL Server Database[^]
Storing data of rich text box to database with formatting[^]
http://stackoverflow.com/questions/15983278/storing-data-of-rich-text-box-to-database-with-formatting[^]
 
Share this answer
 
Comments
Marcin Kozub 12-Dec-14 6:08am    
Nice, my 5!
Maciej Los 12-Dec-14 6:14am    
Thank you, Marcin ;)
You should encode the HTML tags before to send them for storing in your database, and to decode them back when you want to show them into the UI.

Here is a link about web encoding: http://demo.nickname.net/demo/testpak/encode.pl[^]
 
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