title: Connect HyperLinkField click to Server-side method (c#)
body: <p>I have a HyperLinkField which I populate with the urls from a datatable, the field in the datatable is called EncodedAbsUrl.</p>
  
  <p>However, I want to connect this link to a code behind method instead</p>
  
  <p>What I do now</p>
  
  <pre><code>var encodedAbsUrl = new string[] { "EncodedAbsUrl" };
  var hf = new HyperLinkField
  {
      HeaderText = "Link",
      DataTextField = "ServerUrl",
      DataNavigateUrlFields = encodedAbsUrl,
      DataNavigateUrlFormatString = "{0}",
      Target = "_blank",
  };
  </code></pre>
  
  <p>But id like to do something like this</p>
  
  <pre><code>var encodedAbsUrl = new string[] { "EncodedAbsUrl" };
  var hf = new HyperLinkField
  {
      HeaderText = "Link",
      DataTextField = "ServerUrl",
      NavigateUrl = clicker(encodedAbsUrl["{0}"]),
      Target = "_blank",
  };
  
  
  protected void clicker(string url)
  {
      //...
  }
  </code></pre>
  
  <p>Well you can see my attempts are unsuccessful :)</p>
  
  <p>Any advice is appreciated</p>
  
  <p>Thanks!</p>