I am working on a control that is basically just a glorified LinkButton control, However I am running into some issues getting the event validation hooked up correctly. So I have widdled this down to a very simple two lines of code that I just can't quite understand. The following fails with "Invalid postback or callback argument."
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Page.ClientScript.RegisterForEventValidation(Me.UniqueID, "someArgument")
Page.ClientScript.ValidateEvent(Me.UniqueID, "someArgument")
End Sub
I really feel that if i register an event, that it should immediately pass a call to .ValidateEvent(..) with the same arguments, however this is not the case. Can anyone clarify this for me?
Thanks in advance...
...
Go to the complete details ...