Kelly,
That's correct, the simple script callback doesn't preserve the stateful
page class on the server side. You could do this with something like
Anthem.Net because it handles callbacks by actually instantiating the Page
class and preserving the page state. Find it on Sourceforge.net. Or, if you
are more adventurous, ATLAS.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"kelly" wrote:
> 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
>
>