You need an If !IsPostback
in your Page_Load
with your current logic inside the if
.
Don't forget when you press a button Page_Load
will fire before the BtnAdd_Click
You need an If !IsPostback
in your Page_Load
with your current logic inside the if
.
Don't forget when you press a button Page_Load
will fire before the BtnAdd_Click