rliq
June 8th, 2008, 09:37 PM
I have a very simple question.
An ASP Web form with 3 controls. Label, ComboBox and Button. When the page loads the Label and ComboBox both contain the same text. This bit works ok.
I choose a new item from the ComboBox drop down and press the button. Which does a postback (as there is some server side stuff that needs to be done).
How can I get the Label to display the newly selected ComboBox item?
It seems as though my server code, reacting to the Button.OnClick() event, is executed AFTER the page (Label) is reloaded, so it does not get the new value until the next time around...
What is the correct way to do this? I'm getting a bit frustrated ;)
An ASP Web form with 3 controls. Label, ComboBox and Button. When the page loads the Label and ComboBox both contain the same text. This bit works ok.
I choose a new item from the ComboBox drop down and press the button. Which does a postback (as there is some server side stuff that needs to be done).
How can I get the Label to display the newly selected ComboBox item?
It seems as though my server code, reacting to the Button.OnClick() event, is executed AFTER the page (Label) is reloaded, so it does not get the new value until the next time around...
What is the correct way to do this? I'm getting a bit frustrated ;)