Kram wrote: > Hi, > Im using a fairly old version of the AJAX dll only because I started > to use it about a year ago or so on my app and the app rely's on it > fairly heavily, but what I want to be able to do is to update a select > list with more select options dynamically using ajax. I have found that > a simple returning of a HtmlSelect control then overwriting the current > one isnt enogh because of the viewstate and the fact that on the > autopostback of the control the new items are not registered at all. > How can I get around this.
You can't. You can't have your cake and eat it too in this case - ViewState would need to be hacked if you really wanted this to work, so have a good time with that. You can look into Atlas, it takes care of these problems at the expense of having to learn how Atlas works (it looks like more trouble than it is worth). > Currently I am using the Request.Params["nameOfList"] which > works, but I would like to use the control itself is possible. Nope, this is the way you have to do it unless you mangle ViewState yourself. Fun fun fun! Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info -~----------~----~----~----~------~----~------~--~---
