How access hyperlink control in a repeater i c# .net
<p>There is repeater in my program includin a hyper link.i cant a cess my hyper link control.</p>

<pre><code>&lt;asp:HyperLink ID="HyperLink15" runat="server" NavigateUrl="abc.aspx"&gt;
</code></pre>

<p>set enabled=false</p>

<p>so i use </p>

<pre><code>HyperLink a = (HyperLink)Repeater1.FindControl("HyperLink15");
</code></pre>

<p>The hyper link is only enabled for user a and b... so i use the code:</p>

<pre><code>if (a &amp;&amp; b)
{
    HyperLink link = (HyperLink)Repeater1.FindControl("HyperLink15");
    link.Enabled=true;
    link.Navigateurl="efg.aspx"; 
}
</code></pre>

<p>But I get the following error:</p>

<blockquote>
  <p>System.NullReferenceException: Object reference not set to an instance
  of an object.</p>
</blockquote>
