Anyone know how to use C# to convert the below line so it displaya a link in html? [url=www.asp.net.com]My Webpage[/url] and turn it into [code]My Webpage[/code] TIA Alvin
Need to elaborate. I will have a string with a lot of text and in it will be this code that I want to converted to a link. So if I did a replace on "]" to get the ">" then it might change it for something else in the string that I do not want changed.
digiaks
Member
505 Points
101 Posts
Creating board code
Dec 20, 2003 01:43 AM|LINK
ccalderon
Contributor
4732 Points
955 Posts
Re: Creating board code
Dec 20, 2003 03:14 AM|LINK
string url = "[url=www.asp.net.com]My Webpage[/url]" url = url.Replace("[url=","<A HREF='") url = url.Replace("[/url]=","") url = url.Replace("]=","'>")Principal, Software Architec and Delivery
http://www.eki-consulting.com
http://www.linkedin.com/in/chriscalderon
digiaks
Member
505 Points
101 Posts
Re: Creating board code
Dec 20, 2003 08:55 AM|LINK