If some data is not known in advance, then how does the server know the value of the postback? The second argument is to indicate the type of event or specific information about the event, rather than the value entered by the user.
I would register for a user argument and pass someData in a different way.
ClientScript.RegisterForEventValidation(clientIdOfSomeButton, "CustomEvent");
And on the client
HTML
<input name="customArgument" type="hidden" value="" />
Javascript
document.forms[0].customArgument = someData; __doPostBack(clientIdOfSomeButton, '');
then extract your meaning
if(Request["__EVENTARGUMENT"] == "customArgument") { var customArgument = Request["customArgument"] }
source share