Q
quiggle
Howdy!
I have created a web control (ExplanationControl) that contains a datagrid,
and a dropDownList. Both of these controls get populated with data, and are
bound in the Page_Load event of the webcontrol itself. I have a couple of
issues that I am facing, which I believe are related to veiwstate...
1. When a value is selected in the dropDownList, and then the page is
saved, when the page reloads, that same value is selected.
2. When one of the values in the dataGrid is deleted (using a link button
with the commandName of Delete) when the page reloads, the item is still
present. If the page is reloaded again, the item disappears.
I have set enableViewState to false for as many things I can think of....The
page, the form, the asp:Table, the custom webcontrol and the controls with
the web control.
One other tidbit that might be of some use for solving this is that I am
dynamically adding the ExplainControl to the asp:Table dynamically in the
Page_Load of the actual page all this stuff sits on.
Any help would be greatly appreciated...I have been racking my brain over
this for a few days now!
Thanks!
Aimee
I have created a web control (ExplanationControl) that contains a datagrid,
and a dropDownList. Both of these controls get populated with data, and are
bound in the Page_Load event of the webcontrol itself. I have a couple of
issues that I am facing, which I believe are related to veiwstate...
1. When a value is selected in the dropDownList, and then the page is
saved, when the page reloads, that same value is selected.
2. When one of the values in the dataGrid is deleted (using a link button
with the commandName of Delete) when the page reloads, the item is still
present. If the page is reloaded again, the item disappears.
I have set enableViewState to false for as many things I can think of....The
page, the form, the asp:Table, the custom webcontrol and the controls with
the web control.
One other tidbit that might be of some use for solving this is that I am
dynamically adding the ExplainControl to the asp:Table dynamically in the
Page_Load of the actual page all this stuff sits on.
Any help would be greatly appreciated...I have been racking my brain over
this for a few days now!
Thanks!
Aimee