How to process events from Buttons inside Repeaters? And what's this EnableEventValidation thing?
<p>I have a <code>Repeater</code> with a <code>Button</code> inside the <code>ItemTemplate</code>. I added the <code>CommandName</code> property to the button and registered and event handler for the <code>ItemCommand</code> event on the <code>Repeater</code>.</p>

<p>My problem is that when I click the button, I get an <code>ArgumentException</code> with a message saying something about <code>EnableEventValidation</code> being set to <code>true</code>.</p>

<p>(By the way, is there a way I can get the message in English, instead of a lousy Portuguese translation?)</p>

<p>I tried setting it to <code>false</code> and the <code>ItemCommand</code> handler is not called. If I set it to <code>true</code> I get the error.</p>

<p>The message also says something about using <code>ClientScriptManager.RegisterForEventValidation</code> if I trust the client (which I do). The problem is I can't make sense of the documentation for that method.</p>
