Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am creating successfully the hyperlinks inside the rich text box and now i want to save these links in database. can i save it....
Posted
Comments
Zoltán Zörgő 16-Jan-13 8:06am    
You want to extract the hyperlinks from an rtf format file?
rahulbhadouria 16-Jan-13 8:09am    
no i am not, i just want to show these links in another rich text box as same with rtf formate
CHill60 16-Jan-13 8:17am    
Is it as simple as ... retrieve the .Text from richTextBox1, store on your database in a varchar. Retrieve data from database and richTextBox2.Text = stringfromdb applying the same format that you did to richTextBox1
Joezer BH 16-Jan-13 8:35am    
What seems to be the problem?
There should be no issue, it's saving strings in the DB (if you need multiple language support, use nvarchar instead of varchar)
rahulbhadouria 16-Jan-13 8:39am    
I am saving .RTF format to database, at the time of inserting it shows link , but When I am retrieving data from database and bind rtf to RichTextBox it does not show the Hyperlink text.

1 solution

Afer reloading, check if richTextBox.DetectUrls property is true.
If it is false, make it as true.
 
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