Skip to Content
avatar image
Former Member

Dropdownlist problem in .Net PDK

Hi,

I am working in .Net PDK 1.0.I have a country and a state dropdown in my page. When I select the country, state must be populated for the selected country.Country is also loaded dynamically on page load

But I am facing this problem while using dropdown controls. When I select a country, server side event triggers but both my country and state dropdown gets cleared. Can someone tell why this happens. Do I have to bind the country and state dropdown everytime i hit the server.

Please reply asap.

Thanks

swetha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 05, 2006 at 08:40 AM

    Hi,

    The .NET PDK controls does not save the viewstate of collection controls due to performance considerations (bandwidth). (simple controls such as InputField save state).

    This means that u indeed have to data bind each time.

    Hope this helps, Reshef

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 05, 2006 at 07:03 PM

    Thanks Reshef...

    If I have to bind it everytime, I need to store the datatable in memory. I work in a clustered environment and I found a limitation in MSDN stating that Application and session objects should not be used for state management. I can't use a cookie since I need to store a datatable. Please let me know what are the other alternatives for state management.

    Thanks

    Swetha

    Add comment
    10|10000 characters needed characters exceeded