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?


--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to