 <p>You just have to know that you might be reloading the page, and you may try to use the <br/></p> <pre><code>if(!IsPostBack) </code></pre> <p>in your <code>Page_Load(object sender, EventArgs e)</code></p>