KentJackson777
asked on
Microsoft.Web.UI.WebControls, MultiPage losing PageViews and ViewState contents
I am dynamically adding PageViews to a MultiPage control. With Debug I see the MultiPage PageView count increment to the correct number. When I do a Postback the MultiPage loses all the PageViews, the count going to 0.
The code is:
Dim objAppPage As New PageView
Me.mpGenApp.Controls.Add(o bjAppPage)
The mpGenApp is the MultiPage visible on the Web Form.
Thank you,
Kent
The code is:
Dim objAppPage As New PageView
Me.mpGenApp.Controls.Add(o
The mpGenApp is the MultiPage visible on the Web Form.
Thank you,
Kent
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Both marked responses gave me the solution. I needed to re-create the PageViews AND do it in Page_Init.
Thank you both for your help
Thank you both for your help
http://www.codeproject.com/aspnet/retainingstate.asp