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.

if it put old value that was set during page load then it looks you have not set Page.IsPostback in your code.according to page life cycle on server request page gets postback and it is dispose and reload again so when you fire selected index changed your page load gets call againif there is not IsPostBack property present inside page_load then your old value may get replacedThanksKoolprasd2003Editor, DotNetSpider MVMMicrosoft MVP 2014 [ASP.NET/IIS]

Have you debug your code, whether the events which you raised for updating the records has been trigger or not, if it is trigger while page load whether the new data has been fetched from database or not? to clear these all question you have to debug your code, then only you come to know the exact problem.--------------------------------------------------------------------------------Give respect to your work, Instead of trying to impress your boss.