title: Adding OnClick event to ASP.NET control
body: <p>i would like to create <code>OnClick</code> event for my <code>panel</code>. So far now the most of the google results look more or less like this: <a href="http://www.devcurry.com/2009/04/adding-onclick-event-to-aspnet-label.html" rel="nofollow">adding onclick event to aspnet label</a>. Is there any way, to call codebehind function from javascript or panel attributes? Because I would like to Redirect user to a new page and before that save some information in ViewSTate or Sessionstate. Any suggestions? </p>