Hey,...very simple question
I usually write php but happen to be programming with ASP.NET 3.0 framework now and can't figure out how to fix this.
I have a DropdownList and if I selected a some value,...my code behind does a bunch of stuff and outputs the data......
Now,...if I reload the page (ie. press F5 or the little reload thing on the browser)....all my data resets as if my selectedIndex is 0....but the actual showing Value is the previous one I selected!...i try to reset the index in my code behind in the "if ispostback = false" statement...but nothing works......it's like the Value is cached and nothing I can do changes it...
...any help would be appreciated :)
(further explanation: ....if print to screen a mydropdownlist.selectedIndex from my Page load Sub...It will return a 0....however the selected index on the screen is clearly not the 0 one....I understand WHY this is happening...i just need to stop it....or at least have a way of determining the index in the view state...)
Andrew