Hi, no, there is no other way. You can "only" use the Session or Cache collection in AjaxMethods, there is no access to the viewstate. I didn't implement this feature to have the smalles traffic while doing the http request.
Regards, Michael On 9/29/06, royston_ang <[EMAIL PROTECTED]> wrote: > > I have implemented a usercontrol which has a few properties exposed to > the caller page so that it renders differently on different page. > Normally in postback model, I will store the properties in the > usercontrol viewstate so it is persistent. > > However, Ajax Pro treats every ajax method call as static so it is > unable to get the properties of the usercontrol when it reaches the > server. > > A workaround used is to store the usercontrol's properties into hidden > fields and send it together with the page to the client side. And again > pass the hidden field value as parameters of the Ajax Pro ajax method > call back to the server. This works but is very messy. > > I have avoided using session state due to possible scalablilty issues > in load balancing and cookie due to side effect. > > Is there any other ways to retreive persistent state using Ajax Pro? > > > > > -- Best regards | Schöne Grüße Michael Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer http://weblogs.asp.net/mschwarz/ http://www.schwarz-interactive.de/ Skype: callto:schwarz-interactive MSN IM: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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/ Don't forget to read my blog at http://weblogs.asp.net/mschwarz/ -~----------~----~----~----~------~----~------~--~---
