(using Aug CTP)
I have a composite control which consists of label, linkbutton
& textbox control. Depending on the display mode (a property within
the control) one of the control gets displayed. However when the
linkbutton is clicked it seems to throw up this error. The control
works fine in .NET 1.1.
The control inherits from System.Web.UI.WebControls.WebControl,
IPostBackDataHandler & INamingContainer & this is my
IpostBackDataHandler implementation
#region IPostBackDataHandler Implementation
void IPostBackDataHandler.RaisePostDataChangedEvent()
{
OnTextChanged(System.EventArgs.Empty);
}
bool
IPostBackDataHandler.LoadPostData(string postDataKey,
System.Collections.Specialized.NameValueCollection postCollection)
{
bool retVal = false;
if (!this.Text.Equals(postCollection[postDataKey]))
{
this.Text = postCollection[postDataKey];
retVal = true;
}
return retVal;
}
#endregion IPostBackDataHandler Implementation
#### ERROR BEGIN ####
Invalid postback or callback argument.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid postback or callback argument.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[ArgumentException: Invalid postback or callback argument.]
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2088580
System.Web.UI.WebControls.TextBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +89
System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection postCollection) +11
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +718
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+3817
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50712.6; ASP.NET Version:2.0.50712.6