title: asp.net Make a listView row clickable without a button
body: <p>I want to make a listview row clickable without using a button.
  the listview is filled with data out of a database so putting a onclick methode directly on the tr isnt a option.</p>
  
  <p>I found this tread: <a href="http://forums.asp.net/t/1419161.aspx" rel="nofollow">http://forums.asp.net/t/1419161.aspx</a></p>
  
  <p>But i get the error: " registerforeventvalidation can only be called during render()" at line:</p>
  
  <pre><code>     string script = this.ClientScript.GetPostBackClientHyperlink(btn, "", true);
  </code></pre>
  
  <p>This is fixable by setting " enableEventValidation="false" " at @Page directive.</p>
  
  <p>Now my question:</p>
  
  <ul>
  <li>Am i doing something wrong?</li>
  <li>is it a bad thing to do to turn eventValidation off?</li>
  <li>is there a better way of doing this? if so how?</li>
  </ul>
  
  <p>i prefer listview but if there is a better way that involves some other grid like control i would also like to hear that.</p>
  
  <p>i am making this in asp.net VB.net but c# example is also fine.</p>
  
  <p>Thanks!</p>