PRB: Cannot Maintain ViewState on Mobile Controls That You Create Dynamically (309088)
The information in this article applies to:
- Microsoft Mobile Internet Toolkit (MMIT)
This article was previously published under Q309088 SYMPTOMS
When you dynamically create mobile controls, the control may not render after you post back to the server.
CAUSE
The ASP.NET page framework creates statically declared controls for you automatically on every request. If you create and add controls dynamically in your code, you must create these controls in every request.
RESOLUTION
When you dynamically create mobile controls, you must re-create the control on each post back to the server.
STATUSThis behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/14/2002 |
---|
Keywords: | kbDSupport kbprb kbServerControls kbWebForms KB309088 |
---|
|