If you want to  execute the code in the Page_Load subroutine only the FIRST time the page is  loaded, you can use the Page.IsPostBack property. If the Page.IsPostBack property is  false, the page is loaded for the first time, if it is  true, the page is posted back to the server (i.e. from a button click  on a form):
 
No comments:
Post a Comment