How do I convert text to hyperlinks in C#?

Posted by EmilyM on Stack Overflow See other posts from Stack Overflow or by EmilyM
Published on 2011-02-28T14:13:40Z Indexed on 2011/02/28 15:25 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

I am very very very new to C# and ASP.NET development.

What I'd like to do is a find-and-replace for certain words appearing in the body text of a web page. Every time a certain word appears in the body text, I'd like to convert that word into a hyperlink that links to another page on our site.

I have no idea where to even start with this. I've found code for doing find-and-replace in C#, but I haven't found any help for just reading through a document, finding certain strings, and changing them into different strings.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET