I'm having trouble with one of my user controls when it is placed in an UpdatePanel. The control is a database bound GridView with a custom filter area above it. In the filter area, the user can select a column to filter on and enter the value to look for. There is a filter pushbutton to actually perform the filtering and refresh the gridview.
The user control works well when the column to filter on is a numeric or boolean column. But when the column is of type text or date, then an error occurs when the filter button is used.
The error is: "Microsoft JScript runtime error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON. Parameter name: data"
Apart of the control being in an UpdatePanel, I'm not doing anything client-side here, and I don't understand where this JSON error is coming from or how to solve this.
The error only occurs when the user control is in an UpdatePanel. When I take it out of any update panel, the error disappears and the gridview is filtered correctly.
But I need to be able to use this control within update panels, so I need to get this fixed.
Can anyone here help? Thanks in advance.