B
Ben Dewey
Okay, so I have a base Page class called ArticlesPageBase. This base class
has reads in an overridable ArticleId and Loads the data into a Panel object
in the ContentPlaceHolder of the Master.
The article that it loads from the Database is a xml field that contains
html code for the article. I added some custom html to the database article
called <question id="22" />
When the article contains inline questions are parse out the start and ends
of the article to literal controls and do a
panel.Controls.Add(QuestionControl);
My problem is on PostBack my Master Article Panel container has 0 controls.
Is there a way to make these customer controls persist over postback? I
tried creating a List<QuestionControls> and adding to there in addition to
the panel, but I kept getting serialization errors.
has reads in an overridable ArticleId and Loads the data into a Panel object
in the ContentPlaceHolder of the Master.
The article that it loads from the Database is a xml field that contains
html code for the article. I added some custom html to the database article
called <question id="22" />
When the article contains inline questions are parse out the start and ends
of the article to literal controls and do a
panel.Controls.Add(QuestionControl);
My problem is on PostBack my Master Article Panel container has 0 controls.
Is there a way to make these customer controls persist over postback? I
tried creating a List<QuestionControls> and adding to there in addition to
the panel, but I kept getting serialization errors.