Bind serverside function with Hyperlink control in asp.net web form page
<p>I have few controls on asp.net web form page and i want to link a code behind function to Hyperlink to resolve URL</p>

<p>HTML &amp; Code Behind Example</p>

<pre><code>&lt;asp:HyperLink ID="hyplnkVideo" runat="server" NavigateUrl='&lt;%# this.getVideoPageURL()%&gt;'&gt;
     &lt;div id="dAlbumCategory" class="AlbumCategoryIcon"&gt;
         &lt;asp:Image ID="Image1" ImageUrl='~/Images/gallery/Videos.png' runat="server" /&gt;
     &lt;/div&gt;
&lt;/asp:HyperLink&gt;


protected String getVideoPageURL()
{
    string url;
    int PageID = Helper.GetPageIDbyName("Videos.aspx", Request["Language"]);
    url = "~/en/Videos.aspx?PageID=" + PageID + "&amp;Language=" + Request["Language"];
    return url;
}
</code></pre>

<p>This Hyperlink control is not inside any grid view or repeater control. I tried several way but for some reason it doesn't call the function.</p>

<p>I would appreciate help in this regard</p>
