Can you post your whole code behind? I can't think of any reason why you should be seeing this behavior.
Chad
>Hi Chad, sorry for confusing you.
>
>What I want is the addRecord calls whenever the page is NOT post back, else it will do other functions. The function called has no problem, and the value has been set as expected after the page load (without any user's action). I'm just confused that why the variable becomes NULL when I click a button to retrieve it's value which has been set in the Page Load function, thanks.
_________________________________
There are 2 types of people in the world: