I have a user control containing a radGrid. The RadGrid supports sorting. The user control is added to my web form via code. I am able to sort the grid one time. Subsequent sorts cause the following error to occur:
The control identified in the error is the control that displays the sort ascending and sort descending icons. My user controls are recreated and reloaded at each postback. Is there a way to declare a static id for this control or do I need to be storing my created user controls in viewstate and not recreating them on each postback? is there some other way to handle this?
Thanks!
Sean M. Severson
An error has occurred because a control with id 'ctl00$ContentPlaceHolder1$pnlStatesInfo$i0$i0$ctl01$rgClassCode$ctl00$ctl02$ctl00$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
The control identified in the error is the control that displays the sort ascending and sort descending icons. My user controls are recreated and reloaded at each postback. Is there a way to declare a static id for this control or do I need to be storing my created user controls in viewstate and not recreating them on each postback? is there some other way to handle this?
Thanks!
Sean M. Severson