global variable resetting?!
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I am currently developing an AJAX enabled calendar i have a back and forward button that scrolls through the month of the year A global variable called currentDate is set during the first load, and and it will be changed by the event handler for the back and forward buttons however, right now for some reason, the global variable resets itself to the declared default value automatically every time i press the back/foward button. I think i am doing something wrong the updatepanels and stuff I wrote the calander, the back and forth button in a control and then i place the control in a updatepanel in the actual page. It seems like that the control is being re-created everytime i press the button? can someone help!?