title: .net calendar - making the whole cell perform postback (clickable)
body: <p>I've got a .net calendar up and running and bringing information from a database. By default the day number has a post back action applied to it.</p>
  
  <p>What I'm trying to do is have that action apply to the whole cell so the user doesn't need to click on just the text link.</p>
  
  <p>I'm the dayRenderer action i have the following line to try and replicate the action but the second argument I'm not sure how to set it. </p>
  
  <p>It appears to give it an id e.g. 3315 but I'm not sure how to get the required id manually for this code below. I hope this makes sense! I'm new to .NET so not very savvy with my terminology!</p>
  
  <pre><code>e.Cell.Attributes.Add("OnClick", 
      string.Format("javascript:__doPostBack('{0}','{1}')", 
      Calendar1.ClientID, ***ID_NEEDED_HERE***));
  </code></pre>