1
Answer

Capture data after click on custom helper hyperlink

yosr jemili

yosr jemili

9y
363
1

Hello

As Initiation I have to create a custom helper for hyperlink like in the code above :

 class CapturedLink { public static MvcHtmlString Hyperlink(this HtmlHelper helper, string url, string linkText) { return MvcHtmlString.Create(String.Format("<a href='{0}'>{1}</a>", url, linkText)); } }

but what i am missing is that I want to capture some data (application name,page ...etc ) when I click on that link

How we can do this ?

Answers (1)