Variable value not being updated in updatepanel
I have an update panel where I have a dropdown set to autopostback true.Depending on the selection in the dropdown, a variable value is updated. Based on the variable I am allowing the user to navigate from the page.
But if I use the update panel, the variable value is not being updated, keeping the old value that it gets during load.