Since the Page_Load
function in code behind gets executed everytime the button is clicked, I'd guess you need to add if (!IsPostBack)
in there, something like this:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// code that's only executed at first load
}
}