K
kelly
Hi
I have an app where I have 2 dropdown lists (state and city) and a Save
button. When a user selects a value from the state dropdown list, I
use script callback to populate the data for the city dropdown list.
By using script callback, I'm able to execute server side functions
without a postback.
Now here is my problem...let's say I selected Illinois and then Chicago
on the dropdown lists. After I click on Save, the city dropdown list
no longer shows Chicago as the selected value, but shows the first item
in the city dropdown list instead. It seems as if the viewstate is not
being saved/updated or the control is not refreshed correctly?
Is anyone else having this problem using script callbacks? It seems as
if I need to also change the viewstate field on the client side using
javascript?
Kelly
I have an app where I have 2 dropdown lists (state and city) and a Save
button. When a user selects a value from the state dropdown list, I
use script callback to populate the data for the city dropdown list.
By using script callback, I'm able to execute server side functions
without a postback.
Now here is my problem...let's say I selected Illinois and then Chicago
on the dropdown lists. After I click on Save, the city dropdown list
no longer shows Chicago as the selected value, but shows the first item
in the city dropdown list instead. It seems as if the viewstate is not
being saved/updated or the control is not refreshed correctly?
Is anyone else having this problem using script callbacks? It seems as
if I need to also change the viewstate field on the client side using
javascript?
Kelly