Hi,
I have some a textbox and a button in an updatePanel. On page load i run a function called loadNumber(). When the button in the updatePanel is clicked it also runs the loadNumber function. The loadNumber function simply, queries the database and returns a number (lets say that the numbers in the database are 1,2,3) which is displayed in the textbox. So when i click the button in the updatePanel again, it executes the loadNumber function once more and then displays a different number which is 2 or 3 (it stores number 1 after submit so it shouldnt show it again).
This works perfectly fine when i am looking at the page, however the extremely strange thing is that when i look at the source code it is showing a different number than what is showing on the page so for example the textbox on the page could be showing the number "2" but the source code on the page will be showing the number "3". I dont understand, why on earth is the page rendering what is showing up differently in source code? Just for extra information, if i remove the update panel (i.e. so that the page submits fully rather than a partial page submit then it works fine).
Any ideas are very much appreciated!! Thank you.