Hi Joteki,
The error is ever present in my case. I get the typical "Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." whether enableEventValidation is set to true or false.
One thing worth noting: My page actually has three different controls, all seperate and none linked or nested - 1 Gridview and 2 datalists. If I take a new aspx, create a simple gridview bound to the same view in SQL, and try sorting (my problem occurs on the sort), everything rolls fine. But in my original .aspx, I get the error.
So I removed the controls in order to slowly start "removing possible conflicts" and suddently, the sort in my Gridview worked without a hitch. I put the datalist back and the error returned.
Thinking I was on to something, I removed all datalists and gridview from my original .aspx as well as SqlSources. I then proceeded to add my Gridview and the error returned WITHOUT the datalists.
This REALLY appears to be a bug in .Net 2.0, and I've yet to figure out why exactly it happens. Isolating it appears impossible.
The only workaround I can suggest is to "think outside of the box" and try placing your controls in other ways, or redo the page altogether.
I have had other bugs where a simple bound dropdownlist would not function properly until I literally "Deleted" the Usercontrol (.ascx) from my project, created a new one and the DDL functioned properly moving forward.
Servicepack anyone?
/JD