find current element in repeater
<p>How can i get current MainNavigationMenu hyprelink in code behind and check if is current menu clicked then i will change him default CSS.</p>

<p>I try with this code but is always null</p>

<pre><code>HyperLink mainNavigationMenu = siteMapAsBulletedList.FindControl("MainNavigationMenu") as HyperLink;
</code></pre>

<p>full repeater code:</p>

<pre><code>&lt;asp:Repeater runat="server" ID="siteMapAsBulletedList" DataSourceID="smdsMenu"&gt;
                        &lt;HeaderTemplate&gt;
                            &lt;li&gt;&lt;asp:HyperLink ID="MainNavigationMenu" runat="server" NavigateUrl='&lt;%#SiteMap.RootNode.Url%&gt;'
                                Text='&lt;%#SiteMap.RootNode.Title%&gt;'&gt;&lt;/asp:HyperLink&gt;&lt;/li&gt;                        
                        &lt;/HeaderTemplate&gt;
                        &lt;ItemTemplate&gt;
                            &lt;li&gt;&lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&lt;%#Eval("Url")%&gt;' Text='&lt;%#Eval("Title")%&gt;'&gt;&lt;/asp:HyperLink&gt;&lt;/li&gt;
                        &lt;/ItemTemplate&gt;
                        &lt;/asp:Repeater&gt;
</code></pre>
