D
Doug Heeren
I am working on a project that dynamically loads controls from within
Page_init so that the viewstate is preserved. On post back the control saves
it's changs in the Page_load event. If the user navigates to another section
the control is removed in the page load event and a second control is loaded
by the button fire event. This all works very well, but when I add a
validation summary to the parent page I run into an issue.
The first control to load works fine, when the user navigates to another
section the second control is loaded and appears to work, but when the user
tries to navigate to a third section the validation summary lists all the
controls in the first control to load as being in error since there is no
data in them.
What is going on here and how do I "reset" the validation summary? I'd post
the code, but there are about 500 lines of it in the parent page. I figure
the answer is farily simple and lies in a lack of understanding on my part
about loading/unloading controls dymacially, but I can't seem to find
anything on a search engine that is of much use in explaining this to me.
Any help will be highly appreciated,
Page_init so that the viewstate is preserved. On post back the control saves
it's changs in the Page_load event. If the user navigates to another section
the control is removed in the page load event and a second control is loaded
by the button fire event. This all works very well, but when I add a
validation summary to the parent page I run into an issue.
The first control to load works fine, when the user navigates to another
section the second control is loaded and appears to work, but when the user
tries to navigate to a third section the validation summary lists all the
controls in the first control to load as being in error since there is no
data in them.
What is going on here and how do I "reset" the validation summary? I'd post
the code, but there are about 500 lines of it in the parent page. I figure
the answer is farily simple and lies in a lack of understanding on my part
about loading/unloading controls dymacially, but I can't seem to find
anything on a search engine that is of much use in explaining this to me.
Any help will be highly appreciated,