pass variable from page load to button click event
<p>i am creating a page that when page load it will connect to the database to check the user status to determine which part can be shown, then user can click submit button which need to connect to the database again to update some information. </p>

<p>So is there a efficient way to do this? now I have to connect to the database twice or is there a method to pass variables from page load event to button click event. </p>

<p>Any idea？ thanks </p>
