0

I'm curious what techniques you find to be the best for storage and maintaining of viewstate with respect to an ASP.Net application running within a mobile web browser (i.e. Treo with Windows Mobile, or Blackberry Curve web browser).

1
  • Do those browsers have issues with page sizes? ViewState is just a hidden field that gets passed around. Oct 18, 2008 at 2:27

2 Answers 2

2

If you use the mobile controls, the view state can actually be stored in the session instead so it doesn't eat bandwidth. See this link http://msdn.microsoft.com/en-us/library/cteh3e77.aspx for more about mobile controls and maintaining state.

Hope this helps.

1

Some of the mobile controls still store settings in ways that older phones may not support. If you are targeting older mobile phones, you should either change your session settings to cookieless or start using the HiddenVariables collection instead (which older phones can use). We used hiddenvariables since changing our whole site over to cookieless was not an option. However, hiddenvariables can only be strings so you will need to be ready to serialize objects into hidden fields as strings, just like viewstate does.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.