In web application every time your page_load event fire than what happen your code are once again called ... this problem are solve by using IS postback