title: ASP.NET 2.0 - Need to programmatically click a link
body: <p>Is there a way to click a link programatically, so that it has the same effects as if the user clicked on it?</p>
  
  <p>Example:</p>
  
  <p>I have an ASP.NET LinkButton:</p>
  
  <pre><code>&lt;asp:LinkButton id="lnkExport" runat="server" CssClass="navclass"&gt;Export&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>I have a link on a sidebar directing to the .aspx page that has this linkbutton on it. For various reasons I can't have the code for the LinkButton executed until the page has refreshed -- so I am looking for a way to force-click this LinkButton in my code once the page is completely loaded. Is there a simple/doable way to accomplish this? If it involves triggering an event, please provide a code sample if you can.  Thanks.</p>