title: How do I stop dynamic web controls from firing page_load?
body: <p>I have accumulated an ASP.NET project that was running everything off of one page with no post back functionality. The core of the site uses a Silverlight application that we are trying to dispose of. </p>
  
  <p>I am trying to dynamically create list items using the following code.</p>
  
  <pre><code>void AddLinkButton(string id, string text) {
          LinkButton link = new LinkButton();
          link.ID = id;
          link.Text = text;
          link.Click += new EventHandler(link_Click);
          HtmlGenericControl li = new HtmlGenericControl("li");
          li.Controls.Add(link);
          tabsNav.Controls.Add(link);
      }
  </code></pre>
  
  <p>This all works fine and dandy. However, when the link is clicked, it is running the page_load all over again and then its running the click event. How do I stop the page_load from reloading everything and only update the content that I am wishing to refresh?</p>