1

I'm able to detect phone numbers from webpage but unable to linkify them. I want to to linkify a phone no. like 7774443333 to 7774443333

Is there any way to do that? Is their any solution, Is their any method to wrap anchor element around any word in the webpage or something better solution?

Hemant Pawar
  • 360
  • 1
  • 3
  • 14
  • http://stackoverflow.com/questions/758135/c-code-to-linkify-urls-in-a-string does this help? – jcomeau_ictx Dec 02 '10 at 18:51
  • I tried...its good when you want to replace string to webpage...i want to replace webpage to webpage... when I use tempElement.innerHTML = Regex.Replace(tempElement.innerHTML, @"[0-9]{10}", "$1"); ...then it also replaces the
    like or some other hidden things to visible links... I just want to linkify visible text on webpage
    – Hemant Pawar Dec 02 '10 at 19:11

2 Answers2

0

If your putting this on a webform, you could put the text in a label, and wrap the label in an a href, then change the navigation url on the a href in code-behind.

MAW74656
  • 3,449
  • 21
  • 71
  • 118
0

Sounds like a perfect example of IMarkupServices::InsertElement

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46